X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fdatamodel%2FContactMatrixTest.java;h=a8fdb8ccfef826bffc400ea0dec24f42b758c62e;hb=704baca645bf14c607a8a4bede678253a50e7123;hp=f0861e9bd5dc5fe5df64332cf2eb442bf0e73c94;hpb=84233f5cfbe9907cbd390db92db8e267de1a02e3;p=jalview.git diff --git a/test/jalview/datamodel/ContactMatrixTest.java b/test/jalview/datamodel/ContactMatrixTest.java index f0861e9..a8fdb8c 100644 --- a/test/jalview/datamodel/ContactMatrixTest.java +++ b/test/jalview/datamodel/ContactMatrixTest.java @@ -1,11 +1,31 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.datamodel; -import jalview.gui.JvOptionPane; - import org.testng.Assert; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; +import jalview.gui.JvOptionPane; + public class ContactMatrixTest { @BeforeClass(alwaysRun = true) @@ -18,7 +38,8 @@ public class ContactMatrixTest /** * standard asserts for ContactMatrixI */ - public static void testContactMatrixI(ContactMatrixI cm, boolean symmetric) + public static void testContactMatrixI(ContactMatrixI cm, + boolean symmetric) { // assume contact matrix is square for text ContactListI clist = cm.getContactList(1); @@ -81,6 +102,12 @@ public class ContactMatrixTest double[] val = { 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7 }; @Override + public int getPosition() + { + return 0; + } + + @Override public int getContactHeight() { return val.length; @@ -97,6 +124,7 @@ public class ContactMatrixTest } }); + // TODO - write test ! } /** @@ -105,6 +133,7 @@ public class ContactMatrixTest @Test(groups = { "Functional" }) public void testAsymmetricContactMatrix() { + // TODO - write test ! } @@ -114,6 +143,7 @@ public class ContactMatrixTest @Test(groups = { "Functional" }) public void testSymmetricContactMatrix() { + // TODO - write test ! }