From: Ben Soares Date: Thu, 1 Jun 2023 14:49:33 +0000 (+0100) Subject: JAL-629 added data for test X-Git-Tag: Release_2_11_3_0~14^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0cb03d6f6feb66fdf2ce4e8663be8f5cdd81acce;p=jalview.git JAL-629 added data for test --- diff --git a/test/jalview/ws/dbsources/EBIAlphaFoldTest.java b/test/jalview/ws/dbsources/EBIAlphaFoldTest.java index 076ee7e..b737042 100644 --- a/test/jalview/ws/dbsources/EBIAlphaFoldTest.java +++ b/test/jalview/ws/dbsources/EBIAlphaFoldTest.java @@ -6,7 +6,7 @@ import java.io.FileNotFoundException; import java.io.IOException; import org.json.simple.parser.ParseException; -import org.junit.Assert; +import org.testng.Assert; import org.testng.FileAssert; import org.testng.annotations.BeforeClass; import org.testng.annotations.DataProvider; @@ -46,7 +46,7 @@ public class EBIAlphaFoldTest new Sequence("Dummy/1-2000", "ASDASDA"), EBIAlfaFold.parseJSONtoPAEContactMatrix( new FileInputStream(paeFile))); - Assert.assertNotEquals("No data from " + paeFile, cm.getMax(), 0); + Assert.assertNotEquals(cm.getMax(), 0.0f, "No data from " + paeFile); } @Test(groups = { "Functional" }, dataProvider = "getPDBandPAEfiles") @@ -71,13 +71,32 @@ public class EBIAlphaFoldTest { boolean done = EBIAlfaFold.importPaeJSONAsContactMatrixToStructure( smArray, paeInput, "label"); - Assert.assertTrue( - "Import of '" + paeFile + "' didn't complete successfully", - done); + Assert.assertTrue(done, + "Import of '" + paeFile + "' didn't complete successfully"); } catch (IOException | ParseException e) { e.printStackTrace(); } + } + @DataProvider(name = "getPDBandPAEfiles") + public Object[][] getPDBandPAEfiles() + { + return new String[][] { + // + /* + */ + { "examples/test_fab41.result/sample.a2m", + "examples/test_fab41.result/test_fab41_predicted_aligned_error_v1.json" }, + /* + { "examples/AlphaFold/AF-A0A1U8FD60-F1-model_v4.pdb", + "examples/AlphaFold/AF-A0A1U8FD60-F1-predicted_aligned_error_v4.json" }, + { "examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb", + "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4.json" }, + { "examples/AlphaFold/AF-Q5VSL9-F1-model_v4.pdb", + "examples/AlphaFold/AF-Q5VSL9-F1-predicted_aligned_error_v4_2023.json" }, + */ + }; } + }