Search in sources :

Example 1 with CodeService

use of org.eclipse.scout.rt.shared.services.common.code.CodeService in project scout.rt by eclipse.

the class CodeServiceClientProxyTest method createServiceUnderTest.

private static CodeService createServiceUnderTest() {
    CodeService serviceUnderTest = new CodeService() {

        @Override
        public Set<Class<? extends ICodeType<?, ?>>> getAllCodeTypeClasses() {
            Set<Class<? extends ICodeType<?, ?>>> hashSet = new HashSet<>();
            hashSet.add(CompanyRatingCodeType.class);
            hashSet.add(CompanyTypeCodeType.class);
            return hashSet;
        }
    };
    BeanInstanceUtil.initializeBeanInstance(serviceUnderTest);
    return serviceUnderTest;
}
Also used : ICodeType(org.eclipse.scout.rt.shared.services.common.code.ICodeType) CodeService(org.eclipse.scout.rt.shared.services.common.code.CodeService) HashSet(java.util.HashSet)

Aggregations

HashSet (java.util.HashSet)1 CodeService (org.eclipse.scout.rt.shared.services.common.code.CodeService)1 ICodeType (org.eclipse.scout.rt.shared.services.common.code.ICodeType)1