Search in sources :

Example 6 with JMXBundleDeployer

use of aQute.remote.util.JMXBundleDeployer in project liferay-blade-samples by liferay.

the class BladeJspWarPortletTest method cleanUpDependencies.

@AfterClass
public static void cleanUpDependencies() throws Exception {
    new JMXBundleDeployer().uninstall(_fooApiJarBSN);
    new JMXBundleDeployer().uninstall(_fooServiceJarBSN);
    new JMXBundleDeployer().uninstall(_jspPortletWarBSN);
}
Also used : JMXBundleDeployer(aQute.remote.util.JMXBundleDeployer) AfterClass(org.junit.AfterClass)

Example 7 with JMXBundleDeployer

use of aQute.remote.util.JMXBundleDeployer in project liferay-blade-samples by liferay.

the class BladeServiceBuilderTest method cleanUpDependencies.

@AfterClass
public static void cleanUpDependencies() throws Exception {
    new JMXBundleDeployer().uninstall(_fooApiJarBSN);
    new JMXBundleDeployer().uninstall(_fooServiceJarBSN);
    new JMXBundleDeployer().uninstall(_fooWebJarBSN);
}
Also used : JMXBundleDeployer(aQute.remote.util.JMXBundleDeployer) AfterClass(org.junit.AfterClass)

Example 8 with JMXBundleDeployer

use of aQute.remote.util.JMXBundleDeployer in project liferay-blade-samples by liferay.

the class BladePortletGreedyPolicyOptionTest method testBladePortletGreedy.

@Test
public void testBladePortletGreedy() throws Exception {
    _webDriver.get(_greedyPortletURL.toExternalForm());
    Assert.assertTrue("Portlet was not deployed", BladeSampleFunctionalActionUtil.isVisible(_webDriver, _bladeSampleGreedyPortlet));
    Assert.assertTrue("Expected Greedy Portlet, but saw " + _greedyPortletTitle.getText(), _greedyPortletTitle.getText().contentEquals("Greedy Portlet"));
    Assert.assertTrue("Expected SomeService says I am Default!, but saw " + _greedyPortletBody.getText(), _greedyPortletBody.getText().contentEquals("SomeService says I am Default!"));
    final File higherRankedServiceJar = new File(System.getProperty("greedyHigherRankedServiceJarFile"));
    new JMXBundleDeployer().deploy(_higherRankedServiceJarBSN, higherRankedServiceJar);
    _webDriver.navigate().refresh();
    Assert.assertTrue("Expected SomeService says I am better, use me!, but saw " + _greedyPortletBody.getText(), BladeSampleFunctionalActionUtil.isTextPresent(_webDriver, _greedyPortletBody, "SomeService says I am better, use me!"));
}
Also used : JMXBundleDeployer(aQute.remote.util.JMXBundleDeployer) File(java.io.File) Test(org.junit.Test)

Example 9 with JMXBundleDeployer

use of aQute.remote.util.JMXBundleDeployer in project liferay-blade-samples by liferay.

the class ConnectionTest method create.

@Deployment
public static JavaArchive create() throws Exception {
    _dbManager = new DBManager();
    _dbManager.startUp();
    _addData();
    final File jarFile = new File(System.getProperty("jarFile"));
    final File apiJar = new File(System.getProperty("jdbcApiJarFile"));
    new JMXBundleDeployer().deploy(_jdbcServiceBuilderApiJarBSN, apiJar);
    return ShrinkWrap.createFromZipFile(JavaArchive.class, jarFile);
}
Also used : JMXBundleDeployer(aQute.remote.util.JMXBundleDeployer) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 10 with JMXBundleDeployer

use of aQute.remote.util.JMXBundleDeployer in project liferay-blade-samples by liferay.

the class ConnectionTest method create.

@Deployment
public static JavaArchive create() throws Exception {
    _dbManager = new DBManager();
    _dbManager.startUp();
    _addData();
    final File jarFile = new File(System.getProperty("jarFile"));
    final File apiJar = new File(System.getProperty("jndiApiJarFile"));
    new JMXBundleDeployer().deploy(_jndiServiceBuilderApiJarBSN, apiJar);
    return ShrinkWrap.createFromZipFile(JavaArchive.class, jarFile);
}
Also used : JMXBundleDeployer(aQute.remote.util.JMXBundleDeployer) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

JMXBundleDeployer (aQute.remote.util.JMXBundleDeployer)17 File (java.io.File)12 Deployment (org.jboss.arquillian.container.test.api.Deployment)8 AfterClass (org.junit.AfterClass)4 Test (org.junit.Test)3 Jar (aQute.bnd.osgi.Jar)1 BufferedReader (java.io.BufferedReader)1 FileReader (java.io.FileReader)1 FileWriter (java.io.FileWriter)1 Writer (java.io.Writer)1 ArrayList (java.util.ArrayList)1 BundleDTO (org.osgi.framework.dto.BundleDTO)1