blob: 70a0b55f75a5064e89ebd71476af1e790ca15c4f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.service;
import com.yahoo.jdisc.test.TestDriver;
import org.junit.jupiter.api.Test;
import java.net.URI;
import static org.junit.jupiter.api.Assertions.fail;
/**
* @author Simon Thoresen Hult
*/
public class ContainerNotReadyTestCase {
@Test
void requireThatExceptionIsThrown() throws BindingSetNotFoundException {
TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi();
try {
driver.newReference(URI.create("http://host"));
fail();
} catch (ContainerNotReadyException e) {
}
driver.close();
}
}
|