Examples of Archive


Examples of org.jboss.shrinkwrap.api.Archive

     *
     * @throws Exception if any error occurs
     */
    @Test
    public void testDeployArchive() throws Exception {
        Archive archive = ShrinkWrap.create(JavaArchive.class);

        ProtocolMetaData protocolMetaData = instance.deploy(archive);

        assertNotNull("Method returned null result.", protocolMetaData);
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

     *
     * @throws Exception if any error occurs
     */
    @Test
    public void testUndeployArchive() throws Exception {
        Archive archive = ShrinkWrap.create(JavaArchive.class);

        instance.undeploy(archive);
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

    @DeploymentScoped
    InstanceProducer<PortletArchiveMetadata> portletMetadata;

    public void parsePortletXml(@Observes BeforeDeploy event) {
        boolean processed = false;
        Archive applicationArchive = event.getDeployment().getArchive();
        TestClass testClass = testClassInstance.get();

        for (Field field : testClass.getJavaClass().getDeclaredFields()) {
            if (field.isAnnotationPresent(PortalURL.class)) {
                processed = processPortletXml(applicationArchive);
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

     * <p>Tests the {@link SpringWarpExtension#getEnrichmentLibrary()} method.</p>
     */
    @Test
    public void testGetEnrichmentLibrary() {

        Archive archive = instance.getEnrichmentLibrary();

        assertNotNull("Method returned null.", archive);

        for (Class c : REQUIRED_CLASSES) {

            assertTrue("The required type is missing: " + c.getName(),
                    archive.contains(TestResourceHelper.getClassResourcePath(c)));
        }
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

     * @throws Exception if any error occurs
     */
    @Test
    public void testCreateAuxiliaryArchive() throws Exception {

        Archive archive = instance.createAuxiliaryArchive();

        assertNotNull("Method returned null.", archive);
        assertTrue("The returned archive has incorrect type.", archive instanceof JavaArchive);

        for (Class c : REQUIRED_CLASSES) {

            assertTrue("The required type is missing: " + c.getName(),
                    archive.contains(getClassResourcePath(c)));
        }
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

        doCallRealMethod().when(instance).buildArchive();
        doCallRealMethod().when(instance).createArchive();
        doCallRealMethod().when(instance).appendProperties(any(JavaArchive.class));

        Archive result = instance.buildArchive();

        verify(instance).appendResources(any(JavaArchive.class));
        assertNotNull("The result was null.", result);
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

        Instance<SpringIntegrationConfiguration> mockConfigurationInstance = mock(Instance.class);
        when(mockConfigurationInstance.get()).thenReturn(configuration);
        TestReflectionHelper.setFieldValue(instance, "configuration", mockConfigurationInstance);

        Archive archive = instance.createAuxiliaryArchive();

        assertNotNull("Method returned null.", archive);
        assertTrue("The returned archive has incorrect type.", archive instanceof JavaArchive);

        for (Class c : REQUIRED_CLASSES) {

            assertTrue("The required type is missing: " + c.getName(),
                    archive.contains(TestResourceHelper.getClassResourcePath(c)));
        }
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

     * @throws Exception if any error occurs
     */
    @Test
    public void testCreateAuxiliaryArchive() throws Exception {

        Archive archive = instance.createAuxiliaryArchive();

        assertNotNull("Method returned null.", archive);
        assertTrue("The returned archive has incorrect type.", archive instanceof JavaArchive);

        for (Class c : REQUIRED_CLASSES) {

            assertTrue("The required type is missing: " + c.getName(),
                    archive.contains(getClassResourcePath(c)));
        }
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.api.Archive

        Instance<SpringIntegrationConfiguration> mockConfigurationInstance = mock(Instance.class);
        when(mockConfigurationInstance.get()).thenReturn(configuration);
        TestReflectionHelper.setFieldValue(instance, "configuration", mockConfigurationInstance);

        Archive archive = instance.createAuxiliaryArchive();

        assertNotNull("Method returned null.", archive);
        assertTrue("The returned archive has incorrect type.", archive instanceof JavaArchive);

        for (Class c : REQUIRED_CLASSES) {

            assertTrue("The required type is missing: " + c.getName(),
                    archive.contains(TestResourceHelper.getClassResourcePath(c)));
        }
    }
View Full Code Here

Examples of org.jclouds.glesys.domain.Archive

      assertTrue(archiveCounter.apply(before + 1));
   }

   @Test(dependsOnMethods = "testCreateArchive")
   public void testArchiveDetails() throws Exception {
      Archive details = archiveApi.get(archiveUser);
      assertEquals(details.getUsername(), archiveUser);
   }
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.