1 22 package org.objectweb.petals.jbi.management.systemstate; 23 24 import junit.framework.TestCase; 25 26 31 public class ServiceAssemblyStateTest extends TestCase { 32 33 public void testSettersGetters() { 34 ServiceAssemblyState serviceAssemblyState = new ServiceAssemblyState(); 35 36 serviceAssemblyState.setArchiveURL("zipURL"); 37 assertEquals(serviceAssemblyState.getArchiveURL(), "zipURL"); 38 39 serviceAssemblyState.setInstallURL("installURL"); 40 assertEquals(serviceAssemblyState.getInstallURL(), "installURL"); 41 42 serviceAssemblyState.setLifecycleState("started"); 43 assertEquals(serviceAssemblyState.getLifecycleState(), "started"); 44 45 serviceAssemblyState.setName("name"); 46 assertEquals(serviceAssemblyState.getName(), "name"); 47 } 48 49 public void testEquals() { 50 ServiceAssemblyState serviceAssemblyState = new ServiceAssemblyState(); 51 serviceAssemblyState.setName("name"); 52 assertFalse(serviceAssemblyState.equals(null)); 53 } 54 } 55 | Popular Tags |