/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE ${last.version} modeling language!*/



////---- Tests for  OptionalOneToManyAssociation ----/////

test A {

 generate JUnit ;
 
 depend  A,B ; 



 
 GIVEN:
 OptionalOneToManyAssociation.ump;
 
 
 
 THEN:
  //tests for :att1

      test attribute_att1 {
    
      
        A aA("RandomString1");
        
        
    assertTrue( aA.setAtt1("RandomString1"));
    assertTrue( aA.getAtt1() =="RandomString1");
    assertTrue( aA.setAtt1("RandomString2"));
    assertTrue( aA.getAtt1()=="RandomString2");
    assertFalse( aA.getAtt1() =="RandomString1");
             
          
        	}


  
 
   

}
/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the UMPLE ${last.version} modeling language!*/



////---- Tests for  OptionalOneToManyAssociation ----/////

test B {

 generate JUnit ;
 
 depend  A,B ; 



 
 GIVEN:
 OptionalOneToManyAssociation.ump;
 
 
 
 THEN:
  //tests for :att2

      test attribute_att2 {
    
      
        B aB("RandomString1");
        
        
    assertTrue( aB.setAtt2("RandomString1"));
    assertTrue( aB.getAtt2() =="RandomString1");
    assertTrue( aB.setAtt2("RandomString2"));
    assertTrue( aB.getAtt2()=="RandomString2");
    assertFalse( aB.getAtt2() =="RandomString1");
             
          
        	}


  
 
   

}