Search in sources :

Example 6 with NonWorkingOsgiFramework

use of com.yahoo.jdisc.test.NonWorkingOsgiFramework in project vespa by vespa-engine.

the class ApplicationLoaderTestCase method requireThatStartFailsWithoutApplication.

@Test
public void requireThatStartFailsWithoutApplication() throws Exception {
    ApplicationLoader loader = new ApplicationLoader(new NonWorkingOsgiFramework(), Collections.<Module>emptyList());
    try {
        loader.init(null, false);
        loader.start();
        fail();
    } catch (ConfigurationException e) {
    }
}
Also used : NonWorkingOsgiFramework(com.yahoo.jdisc.test.NonWorkingOsgiFramework) ConfigurationException(com.google.inject.ConfigurationException) Test(org.junit.Test)

Aggregations

NonWorkingOsgiFramework (com.yahoo.jdisc.test.NonWorkingOsgiFramework)6 Test (org.junit.Test)6 ConfigurationException (com.google.inject.ConfigurationException)1 ApplicationNotReadyException (com.yahoo.jdisc.application.ApplicationNotReadyException)1 ContainerBuilder (com.yahoo.jdisc.application.ContainerBuilder)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1