Examples of PassThroughLocalizableString


Examples of org.openengsb.core.api.l10n.PassThroughLocalizableString

                String.format("(%s=%s)", org.osgi.framework.Constants.SERVICE_PID, "test")))
            .thenReturn(new ServiceReference[]{ ref });

        ServiceDescriptor serviceDescriptor = Mockito.mock(ServiceDescriptor.class);
        Mockito.when(serviceDescriptor.getId()).thenReturn("ManagerId");
        Mockito.when(serviceDescriptor.getName()).thenReturn(new PassThroughLocalizableString("ServiceName"));
        Mockito.when(serviceDescriptor.getDescription()).thenReturn(
            new PassThroughLocalizableString("ServiceDescription"));

        if (!serviceListExpanded) {
            expandServiceListTree();
        }
        tester.clickLink("methodCallForm:serviceList:i:5:nodeComponent:contentLink", true);
View Full Code Here

Examples of org.openengsb.core.api.l10n.PassThroughLocalizableString

        when(bundleContext.getServiceReferences(Domain.class.getName(), String.format("(id=%s)", "test"))).thenReturn(
            new ServiceReference[]{ ref });

        ServiceDescriptor serviceDescriptor = Mockito.mock(ServiceDescriptor.class);
        Mockito.when(serviceDescriptor.getId()).thenReturn("ManagerId");
        Mockito.when(serviceDescriptor.getName()).thenReturn(new PassThroughLocalizableString("ServiceName"));
        Mockito.when(serviceDescriptor.getDescription()).thenReturn(
            new PassThroughLocalizableString("ServiceDescription"));

        if (!serviceListExpanded) {
            expandServiceListTree();
        }
        tester.clickLink("methodCallForm:serviceList:i:5:nodeComponent:contentLink", true);
View Full Code Here

Examples of org.openengsb.core.api.l10n.PassThroughLocalizableString

        serviceManager.createWithId("testdomain+testconnector+test-service",
            new ConnectorDescription("testdomain", "testconnector",
                attributes, properties));

        ServiceDescriptor serviceDescriptorMock = Mockito.mock(ServiceDescriptor.class);
        Mockito.when(serviceDescriptorMock.getName()).thenReturn(new PassThroughLocalizableString("service.name"));
        Mockito.when(serviceDescriptorMock.getDescription()).thenReturn(
            new PassThroughLocalizableString("service.description"));

        doThrow(new IllegalArgumentException()).when(testService).update(eq("fail"), anyString());
        setupTesterWithSpringMockContext();
    }
View Full Code Here

Examples of org.openengsb.core.api.l10n.PassThroughLocalizableString

    @Before
    public void setup() {
        strings = mock(StringLocalizer.class);
        builder = AttributeDefinition.builder(strings);

        when(strings.getString("nameKey")).thenReturn(new PassThroughLocalizableString("name"));
        when(strings.getString("descKey")).thenReturn(new PassThroughLocalizableString("desc"));
        when(strings.getString("defaultValue")).thenReturn(new PassThroughLocalizableString("localized"));
        when(strings.getString("optionLabelKey")).thenReturn(new PassThroughLocalizableString("option"));
        builder.id("a");
        builder.name("nameKey");
        builder.description("descKey");
    }
View Full Code Here

Examples of org.openengsb.core.api.l10n.PassThroughLocalizableString

    @Before
    public void setup() {
        strings = mock(StringLocalizer.class);
        builder = ServiceDescriptor.builder(strings);

        when(strings.getString("nameKey")).thenReturn(new PassThroughLocalizableString("name"));
        when(strings.getString("descKey")).thenReturn(new PassThroughLocalizableString("desc"));
        builder.id("a");
        builder.implementationType(NullDomainImpl.class);
        builder.name("nameKey");
        builder.description("descKey");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.