Esempio n. 1
0
        public void test_Validation_CVTerm2()
        {
            CVTerm cv = new CVTerm();

            assertTrue(cv != null);
            assertEquals(false, (cv.hasRequiredAttributes()));
            cv.setQualifierType(libsbml.BIOLOGICAL_QUALIFIER);
            assertEquals(false, (cv.hasRequiredAttributes()));
            cv.setBiologicalQualifierType(libsbml.BQB_IS);
            assertEquals(false, (cv.hasRequiredAttributes()));
            cv.addResource("ggg");
            assertEquals(true, (cv.hasRequiredAttributes()));
            cv = null;
        }
Esempio n. 2
0
        public void test_Validation_CVTerm1()
        {
            CVTerm cv = new CVTerm();

            assertTrue(cv != null);
            assertEquals(false, (cv.hasRequiredAttributes()));
            cv.setQualifierType(libsbml.MODEL_QUALIFIER);
            assertEquals(false, (cv.hasRequiredAttributes()));
            cv.setModelQualifierType(libsbml.BQM_IS);
            assertEquals(false, (cv.hasRequiredAttributes()));
            cv.addResource("ggg");
            assertEquals(true, (cv.hasRequiredAttributes()));
            cv = null;
        }