aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/test/java/com/yahoo/jdisc/service/ContainerNotReadyTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/service/ContainerNotReadyTestCase.java')
-rw-r--r--jdisc_core/src/test/java/com/yahoo/jdisc/service/ContainerNotReadyTestCase.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/service/ContainerNotReadyTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/service/ContainerNotReadyTestCase.java
new file mode 100644
index 00000000000..423e6e4cc91
--- /dev/null
+++ b/jdisc_core/src/test/java/com/yahoo/jdisc/service/ContainerNotReadyTestCase.java
@@ -0,0 +1,28 @@
+// Copyright 2016 Yahoo Inc. 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.Test;
+
+import java.net.URI;
+
+import static org.junit.Assert.fail;
+
+
+/**
+ * @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
+ */
+public class ContainerNotReadyTestCase {
+
+ @Test
+ public void requireThatExceptionIsThrown() throws BindingSetNotFoundException {
+ TestDriver driver = TestDriver.newSimpleApplicationInstanceWithoutOsgi();
+ try {
+ driver.newReference(URI.create("http://host"));
+ fail();
+ } catch (ContainerNotReadyException e) {
+
+ }
+ driver.close();
+ }
+}