6161public class EcodInstallationTest {
6262
6363 private static final Logger logger = LoggerFactory .getLogger (EcodInstallationTest .class );
64- private static final String VERSION = "develop133 " ; // Should be updated periodically
64+ private static final String VERSION = "develop204 " ; // Should be updated periodically
6565
6666 // Info about known versions, for testing
6767 private static final int DEVELOP_FIRST_VERSION = 124 ;
68- private static final int DEVELOP_LATEST_VERSTION = 136 ; // Should be updated periodically
68+ private static final int DEVELOP_LATEST_VERSION = 204 ; // Should be updated periodically
6969 //versions known to be unreleased
70- private static final List <Integer > DEVELOP_VERSIONS_BLACKLIST = Arrays .asList ( 85 , 107 , 113 , 125 , 128 , 131 );
70+ private static final List <Integer > DEVELOP_VERSIONS_BLACKLIST = Arrays .asList ( 85 , 107 , 113 , 125 , 128 , 131 ,
71+ 147 , 151 , 162 , 165 , 176 , 177 , 181 , 185 , 197 , 200 , 202 );
7172
7273 static {
7374 //System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
@@ -117,7 +118,10 @@ public void testAllDomains() throws IOException {
117118 expected = 483812 ; //version135 (stats file)
118119 break ;
119120 case "develop136" :
120- expected = 484847 ; //version136 (stats file)
121+ expected = 484847 ; //version136 (stats file differs: 484463)
122+ break ;
123+ case "develop204" :
124+ expected = 592427 ;
121125 break ;
122126 default :
123127 fail ("Unrecognized version " +VERSION );
@@ -159,17 +163,27 @@ public void testParsing() throws IOException {
159163
160164 ecodId = "e1lyw.1" ;
161165 domain = ecod .getDomainsById (ecodId );
166+ // fGroup reassigned around dev200
167+ int fGroup ;
168+ String fGroupName ;
169+ if ( ecod .getVersion ().compareToIgnoreCase ("develop200" ) < 0 ) {
170+ fGroup = 2 ;
171+ fGroupName = "EF00710" ;
172+ } else {
173+ fGroup = 43 ;
174+ fGroupName = "Asp_C,Asp_N" ;
175+ }
162176 expected = new EcodDomain (
163177 // Long uid, String domainId, Boolean manual,
164178 20669l , "e1lyw.1" , false ,
165179 // Integer xGroup, Integer hGroup, Integer tGroup, Integer fGroup, String pdbId,
166- 1 ,1 ,1 ,2 ,"1lyw" ,
180+ 1 ,1 ,1 ,fGroup ,"1lyw" ,
167181 // String chainName, String range, String seqId, String architectureName,
168182 "." , "A:3-97,B:106-346" , "A:3-97,B:1-241" , "beta barrels" ,
169183 // String xGroupName, String hGroupName, String tGroupName,
170184 "cradle loop barrel" , "RIFT-related" ,"acid protease" ,
171185 // String fGroupName, Boolean isAssembly, List<String> ligands
172- "EF00710" ,
186+ fGroupName ,
173187 20669l , Collections .singleton ("EPE" )
174188 );
175189 assertEquals (ecodId ,expected ,domain );
@@ -231,8 +245,16 @@ public void testFilterByHierarchy() throws IOException {
231245 List <EcodDomain > filtered ;
232246 Set <String > expected ,actual ;
233247
248+ // expected members through at least develop133
234249 expected = new HashSet <String >(Arrays .asList (
235250 "e4il6R1 e4pj0R1 e4pj0r1 e4ub6R1 e4ub8R1" .split (" " ) ));
251+ // expanded by develop204
252+ if ( ecod .getVersion ().compareToIgnoreCase ("develop204" ) >= 0 ) {
253+ expected .addAll (Arrays .asList (
254+ ("e5kafR1 e5kafr1 e5kaiR1 e5kair1 e5tisR1 e5tisr1 e5gthR1 e5gtiR1 "
255+ + "e5ws5R1 e5ws6R1 e5mx2R1 e5mx2r1" ).split (" " ) ));
256+ }
257+
236258 filtered = ecod .filterByHierarchy ("6106.1.1" );
237259 actual = new HashSet <String >();
238260 for (EcodDomain d : filtered ) {
@@ -339,7 +361,7 @@ public void testGetStructure() throws IOException, StructureException {
339361 */
340362 public static List <String > getKnownEcodVersions () {
341363 // Parse version from latest.
342- int latestVersion = DEVELOP_LATEST_VERSTION ;
364+ int latestVersion = DEVELOP_LATEST_VERSION ;
343365 try {
344366 EcodDatabase latest = EcodFactory .getEcodDatabase (EcodFactory .DEFAULT_VERSION );
345367 String latestVersionStr ;
@@ -349,7 +371,7 @@ public static List<String> getKnownEcodVersions() {
349371 latestVersion = Integer .parseInt (match .group (1 ));
350372 latest = null ;
351373 } catch (IOException e ) {}
352- latestVersion = Math .max (latestVersion , DEVELOP_LATEST_VERSTION );
374+ latestVersion = Math .max (latestVersion , DEVELOP_LATEST_VERSION );
353375
354376 List <String > versions = new ArrayList <>(latestVersion -DEVELOP_FIRST_VERSION +2 );
355377 for (int version =DEVELOP_FIRST_VERSION ;version <=latestVersion ;version ++) {
0 commit comments