X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fext%2Fjmol%2FPDBFileWithJmolTest.java;fp=test%2Fjalview%2Fext%2Fjmol%2FPDBFileWithJmolTest.java;h=2b538226801752acfa541f1595ac16db0fd8ce45;hb=5d559ba1007072cbf2e7065a3a32356a188fea7f;hp=0000000000000000000000000000000000000000;hpb=2fdd3b15c68d12fcf0c56e2ee70d3ff593f82249;p=jalview.git diff --git a/test/jalview/ext/jmol/PDBFileWithJmolTest.java b/test/jalview/ext/jmol/PDBFileWithJmolTest.java new file mode 100644 index 0000000..2b53822 --- /dev/null +++ b/test/jalview/ext/jmol/PDBFileWithJmolTest.java @@ -0,0 +1,31 @@ +/** + * + */ +package jalview.ext.jmol; + +import static org.junit.Assert.*; + +import java.util.Vector; + +import jalview.datamodel.SequenceI; + +import org.junit.Test; + +/** + * @author jimp + * + */ +public class PDBFileWithJmolTest +{ + + @Test + public void test() throws Exception + { + PDBFileWithJmol jtest=new PDBFileWithJmol("./examples/1vsp", jalview.io.AppletFormatAdapter.FILE); + Vector seqs=jtest.getSeqs(); + assertTrue("No sequences extracted from testfile", seqs!=null && seqs.size()>0); + assertTrue("No annotation generated.", seqs.get(0).getAnnotation()!=null && seqs.get(0).getAnnotation().length!=0); + + } + +}