hasRequiredAttributes() публичный Метод

public hasRequiredAttributes ( ) : bool
Результат bool
Пример #1
0
 public void test_L3_Species_hasRequiredAttributes()
 {
     Species s = new  Species(3,1);
       assertEquals( false, s.hasRequiredAttributes() );
       s.setId( "id");
       assertEquals( false, s.hasRequiredAttributes() );
       s.setCompartment( "cell");
       assertEquals( false, s.hasRequiredAttributes() );
       s.setHasOnlySubstanceUnits(false);
       assertEquals( false, s.hasRequiredAttributes() );
       s.setBoundaryCondition(false);
       assertEquals( false, s.hasRequiredAttributes() );
       s.setConstant(false);
       assertEquals( true, s.hasRequiredAttributes() );
       s = null;
 }
Пример #2
0
 public void test_Species_L1()
 {
     Species s = new Species(1,2);
       assertEquals( false, (s.hasRequiredAttributes()) );
       s.setId("s");
       assertEquals( false, (s.hasRequiredAttributes()) );
       s.setCompartment("c");
       assertEquals( false, (s.hasRequiredAttributes()) );
       s.setInitialAmount(2);
       assertEquals( true, s.hasRequiredAttributes() );
       s = null;
 }