|
47 | 47 | import org.biojava.nbio.structure.ecod.EcodDomain; |
48 | 48 | import org.biojava.nbio.structure.ecod.EcodFactory; |
49 | 49 | import org.biojava.nbio.structure.ecod.EcodInstallation; |
| 50 | +import org.junit.Ignore; |
50 | 51 | import org.junit.Rule; |
51 | 52 | import org.junit.Test; |
52 | 53 | import org.junit.rules.TemporaryFolder; |
|
60 | 61 | public class EcodInstallationTest { |
61 | 62 |
|
62 | 63 | private static final Logger logger = LoggerFactory.getLogger(EcodInstallationTest.class); |
63 | | - private static final String VERSION = "develop124"; // Should be updated periodically |
| 64 | + private static final String VERSION = "develop133"; // Should be updated periodically |
64 | 65 |
|
65 | 66 | // Info about known versions, for testing |
66 | | - private static final int DEVELOP_FIRST_VERSION = 45; |
67 | | - private static final int DEVELOP_LATEST_VERSTION = 124; // Should be updated periodically |
| 67 | + private static final int DEVELOP_FIRST_VERSION = 124; |
| 68 | + private static final int DEVELOP_LATEST_VERSTION = 136; // Should be updated periodically |
68 | 69 | //versions known to be unreleased |
69 | | - private static final List<Integer> DEVELOP_VERSIONS_BLACKLIST = Arrays.asList( 85, 107, 113 ); |
| 70 | + private static final List<Integer> DEVELOP_VERSIONS_BLACKLIST = Arrays.asList( 85, 107, 113, 125, 128, 131 ); |
70 | 71 |
|
71 | 72 | static { |
72 | 73 | //System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector"); |
@@ -106,6 +107,18 @@ public void testAllDomains() throws IOException { |
106 | 107 | case "develop124": |
107 | 108 | expected = 468680; //version124 |
108 | 109 | break; |
| 110 | + case "develop133": |
| 111 | + expected = 479738; //version133 |
| 112 | + break; |
| 113 | + case "develop134": |
| 114 | + expected = 483056; //version134 (stats file) |
| 115 | + break; |
| 116 | + case "develop135": |
| 117 | + expected = 483812; //version135 (stats file) |
| 118 | + break; |
| 119 | + case "develop136": |
| 120 | + expected = 484847; //version136 (stats file) |
| 121 | + break; |
109 | 122 | default: |
110 | 123 | fail("Unrecognized version "+VERSION); |
111 | 124 | return; |
@@ -154,10 +167,9 @@ public void testParsing() throws IOException { |
154 | 167 | // String chainName, String range, String seqId, String architectureName, |
155 | 168 | ".", "A:3-97,B:106-346", "A:3-97,B:1-241", "beta barrels", |
156 | 169 | // String xGroupName, String hGroupName, String tGroupName, |
157 | | - "cradle loop barrel", "RIFT-related", |
158 | | - "NO_T_NAME",// should be "acid protease" except for bug in develop124 |
| 170 | + "cradle loop barrel", "RIFT-related","acid protease", |
159 | 171 | // String fGroupName, Boolean isAssembly, List<String> ligands |
160 | | - "EF00710",//"UNK_F_TYPE", |
| 172 | + "EF00710", |
161 | 173 | 20669l, Collections.singleton("EPE") |
162 | 174 | ); |
163 | 175 | assertEquals(ecodId,expected,domain); |
|
0 commit comments