2626
2727import org .biojava .nbio .structure .io .sifts .*;
2828import org .junit .Assert ;
29+ import org .junit .Ignore ;
2930import org .junit .Test ;
3031
3132import java .io .InputStream ;
3435
3536public class TestSiftsParsing {
3637
37-
38+ @ Ignore ( "Requires an external resource tha fails often in github workflow (don't know why)" )
3839 @ Test
3940 public void test4DIA () throws Exception {
4041 List <SiftsEntity > entities = SiftsMappingProvider .getSiftsMapping ("4DIA" );
@@ -46,7 +47,6 @@ public void test4DIA() throws Exception {
4647 for (SiftsEntity e : entities ) {
4748 //System.out.println(e.getEntityId() + " " +e.getType());
4849
49-
5050 Assert .assertTrue (e .getSegments ().size () > 0 );
5151 for (SiftsSegment seg : e .getSegments ()) {
5252 Assert .assertTrue (seg .getResidues ().size () > 0 );
@@ -59,19 +59,15 @@ public void test4DIA() throws Exception {
5959
6060 // test for github ticket #280
6161 if (res .getUniProtPos () == 129 ) {
62-
6362 Assert .assertTrue (res .getNotObserved ());
6463 }
65-
6664 }
6765 }
6866 }
69-
7067 }
71-
72-
7368 }
7469
70+ @ Ignore ("Requires an external resource tha fails often in github workflow (don't know why)" )
7571 @ Test
7672 public void test4jn3 () throws Exception {
7773 List <SiftsEntity > entities = SiftsMappingProvider .getSiftsMapping ("4jn3" );
@@ -82,27 +78,21 @@ public void test4jn3() throws Exception {
8278
8379 for (SiftsEntity e : entities ) {
8480 //System.out.println(e.getEntityId() + " " +e.getType());
85-
86-
8781 Assert .assertTrue (e .getSegments ().size () > 0 );
8882 for (SiftsSegment seg : e .getSegments ()) {
8983 Assert .assertTrue (seg .getResidues ().size () > 0 );
9084 //System.out.println(seg.getResidues().size());
9185 //System.out.println(" Segment: " + seg.getSegId() + " " + seg.getStart() + " " + seg.getEnd()) ;
92- //
86+
9387 for (SiftsResidue res : seg .getResidues ()) {
9488 //System.out.println(" " + res);
9589 if (res .getUniProtResName () != null ) {
9690 Assert .assertNotNull (res .getUniProtAccessionId ());
9791 Assert .assertNotNull (res .getUniProtResName ());
98-
9992 }
10093 }
10194 }
102-
10395 }
104-
105-
10696 }
10797
10898 @ Test
@@ -151,12 +141,10 @@ public void test4DOU() throws Exception {
151141 }
152142 //break;
153143 }
154-
155144 }
156-
157-
158145 }
159146
147+ @ Ignore ("Requires an external resource tha fails often in github workflow (don't know why)" )
160148 @ Test
161149 public void test4O6W () throws Exception {
162150 List <SiftsEntity > entities = SiftsMappingProvider .getSiftsMapping ("4O6W" );
@@ -173,11 +161,9 @@ public void test4O6W() throws Exception {
173161 if (ecount != 1 )
174162 continue ;
175163
176-
177164 Assert .assertEquals ("A" , e .getEntityId ());
178165 Assert .assertEquals ("protein" , e .getType ());
179166
180-
181167 // 4O6W A has 2 segments
182168 Assert .assertEquals (2 , e .getSegments ().size ());
183169
@@ -191,28 +177,19 @@ public void test4O6W() throws Exception {
191177
192178 Assert .assertTrue (seg .getResidues ().size () > 0 );
193179
194-
195180 for (SiftsResidue res : seg .getResidues ()) {
196181
197-
198182 if (res .getUniProtResName () != null ) {
199183 //System.out.println(" " + res);
200184 Assert .assertNotNull (res .getUniProtAccessionId ());
201185 Assert .assertNotNull (res .getUniProtResName ());
202-
203186 }
204187
205188 if (res .getPdbResNum ().equals ("502" )) {
206-
207189 Assert .assertTrue (res .getNotObserved ());
208-
209190 }
210191 }
211192 //break;
212193 }
213-
214-
215194 }
216-
217-
218195}
0 commit comments