diff options
Diffstat (limited to 'container-core/src/test/java/com/yahoo/container/xml/bind/JAXBContextFactoryTest.java')
-rw-r--r-- | container-core/src/test/java/com/yahoo/container/xml/bind/JAXBContextFactoryTest.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/container-core/src/test/java/com/yahoo/container/xml/bind/JAXBContextFactoryTest.java b/container-core/src/test/java/com/yahoo/container/xml/bind/JAXBContextFactoryTest.java deleted file mode 100644 index 670b69516bf..00000000000 --- a/container-core/src/test/java/com/yahoo/container/xml/bind/JAXBContextFactoryTest.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.container.xml.bind; - -import org.junit.Test; - -import static org.hamcrest.CoreMatchers.equalTo; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.fail; - -/** - * @author einarmr - * @author gjoranv - * @since 5.3 - */ -@SuppressWarnings("deprecation") -public class JAXBContextFactoryTest { - @Test - public void testInstantiationAndDestruction() { - - com.yahoo.container.xml.providers.JAXBContextFactoryProvider provider = new com.yahoo.container.xml.providers.JAXBContextFactoryProvider(); - JAXBContextFactory factory = provider.get(); - assertThat(factory.getClass().getName(), equalTo(com.yahoo.container.xml.providers.JAXBContextFactoryProvider.FACTORY_CLASS)); - - try { - JAXBContextFactory.getContextPath((Class) null); - fail("Should have failed with null classes."); - } catch (Exception e) { } - - try { - JAXBContextFactory.getContextPath(); - fail("Should have failed with empty list."); - } catch (Exception e) { } - - assertThat(JAXBContextFactory.getContextPath(this.getClass()), - equalTo(this.getClass().getPackage().getName())); - - assertThat(JAXBContextFactory.getContextPath(this.getClass(), - String.class), - equalTo(this.getClass().getPackage().getName() + ":" + - String.class.getPackage().getName())); - - provider.deconstruct(); - - } -} |