Package fr.imag.adele.apam.tests.app

Examples of fr.imag.adele.apam.tests.app.ClientObject


    Assert.assertNotNull("Property testVersionDef must exist ",instClient.getPropertyObject("testVersionDef"));
    Assert.assertEquals("Property testVersionDef type is a version ", "version", instClient.getPropertyDefinition("testVersionDef").getType());
    Assert.assertEquals("Property testVersionDef value is 4.5.6 ", Version.parseVersion("4.5.6"), instClient.getPropertyObject("testVersionDef"));
   
    System.err.println("Test injection");
    ClientObject myObject = (ClientObject) instClient.getServiceObject();
    myObject.setMyVersionInjected(Version.parseVersion("7.8.9"));
   
    Assert.assertNotNull("Property testVersionInjected must exist ",instClient.getPropertyObject("testVersionInjected"));
    Assert.assertEquals("Property testVersionInjected type is a version ", "version", instClient.getPropertyDefinition("testVersionInjected").getType());
    Assert.assertEquals("Property testVersionInjected value is 7.8.9 ", Version.parseVersion("7.8.9"), instClient.getPropertyObject("testVersionInjected"))
   
    instClient.setProperty("testVersionInjected", Version.parseVersion("1.0.1"));
    Assert.assertEquals("Property testVersionInjected value (from javaclass) ", Version.parseVersion("1.0.1"), myObject.getMyVersionInjected());

  }
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.tests.app.ClientObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.