1 22 package org.objectweb.petals.jbi.component.lifecycle.mock; 23 24 import org.objectweb.petals.tools.jbicommon.descriptor.ServiceUnit; 25 26 31 public class MockServiceUnitBuilder { 32 33 public static ServiceUnit buildServiceUnit() { 34 ServiceUnitMock serviceUnit = new ServiceUnitMock(); 35 IdentificationMock identification = new IdentificationMock(); 36 identification.setName("testServiceUnit"); 37 serviceUnit.setIdentification(identification); 38 serviceUnit.setTargetComponentName("testComponentDescription"); 39 return serviceUnit; 40 } 41 42 } 43 | Popular Tags |