Examples of AddonId


Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testCompareToVersionGt() throws Exception
   {
      AddonId left = AddonId.from("name", "2.0.0-SNAPSHOT");
      AddonId right = AddonId.from("name", "1.0.0-SNAPSHOT");

      Assert.assertTrue(left.compareTo(right) > 0);
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testCompareToEqualsWithApiVersion() throws Exception
   {
      AddonId left = AddonId.from("name", "1.0.0-SNAPSHOT", "0");
      AddonId right = AddonId.from("name", "1.0.0-SNAPSHOT", "0");

      Assert.assertEquals(0, left.compareTo(right));
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testCompareToEqualsWithMismatchedApiVersionLt() throws Exception
   {
      AddonId left = AddonId.from("name", "1.0.0-SNAPSHOT", "0");
      AddonId right = AddonId.from("name", "1.0.0-SNAPSHOT", "1");

      Assert.assertTrue(left.compareTo(right) < 0);
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testCompareToEqualsWithMismatchedApiVersionGt() throws Exception
   {
      AddonId left = AddonId.from("name", "1.0.0-SNAPSHOT", "2");
      AddonId right = AddonId.from("name", "1.0.0-SNAPSHOT", "1");

      Assert.assertTrue(left.compareTo(right) > 0);
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testAddonInstallNoDependencyWithEmptyRepository() throws IOException
   {
      AddonId addon = AddonId.from("test:no_dep", "1.0.0.Final");
      InstallRequest install = addonManager.install(addon);
      List<? extends AddonActionRequest> actions = install.getActions();
      Assert.assertEquals(1, actions.size());
      Assert.assertThat(actions.get(0), instanceOf(DeployRequest.class));
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testAddonInstallNoDependencyWithAddonAlreadyInstalled() throws IOException
   {
      AddonId addon = AddonId.from("test:no_dep", "1.0.0.Final");
      InstallRequest install = addonManager.install(addon);
      install.perform();
      install = addonManager.install(addon);
      Assert.assertTrue(install.getActions().isEmpty());
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testAddonInstallSnapshot() throws IOException
   {
      AddonId addon = AddonId.from("test:no_dep", "1.1.2-SNAPSHOT");
      InstallRequest install = addonManager.install(addon);
      Assert.assertEquals(1, install.getActions().size());
      install.perform();
      install = addonManager.install(addon);
      List<? extends AddonActionRequest> actions = install.getActions();
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   }

   @Test
   public void testAddonUpdate() throws IOException
   {
      AddonId addon = AddonId.from("test:one_dep", "1.0.0.Final");
      InstallRequest install = addonManager.install(addon);
      Assert.assertEquals(2, install.getActions().size());
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   @SuppressWarnings("unchecked")
   @Test
   public void testInstallTwoDeps() throws IOException
   {
      AddonId addon = AddonId.from("test:one_dep", "1.0.0.Final");
      InstallRequest install = addonManager.install(addon);
      List<?> actions = install.getActions();
      Assert.assertEquals(2, actions.size());
      Assert.assertThat((List<DeployRequest>) actions, everyItem(isA(DeployRequest.class)));
   }
View Full Code Here

Examples of org.jboss.forge.furnace.addons.AddonId

   @SuppressWarnings("unchecked")
   @Test
   public void testParentExclusion() throws IOException
   {
      AddonId addon = AddonId.from("test:no_dep_one_lib_excluding_indirect_lib", "1.0.0.Final");
      InstallRequest install = addonManager.install(addon);
      List<? extends AddonActionRequest> actions = install.getActions();
      Assert.assertEquals(1, actions.size());
      Assert.assertThat((List<DeployRequest>) actions, everyItem(isA(DeployRequest.class)));
      DeployRequest deployRequest = (DeployRequest) actions.get(0);
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.