Package org.jboss.arquillian.container.jetty.embedded_7

Examples of org.jboss.arquillian.container.jetty.embedded_7.JettyEmbeddedDeploymentAppender


{

   @Test
   public void shouldBeAbleToExtract() throws Exception
   {
      Version version = VersionUtil.extract("1.2");
      Assert.assertEquals(1, version.getMajor());
      Assert.assertEquals(2, version.getMinor());
   }
View Full Code Here


   }

   @Test
   public void shouldBeAbleToExtractWithMultipleDigits() throws Exception
   {
      Version version = VersionUtil.extract("10.300");
      Assert.assertEquals(10, version.getMajor());
      Assert.assertEquals(300, version.getMinor());
   }
View Full Code Here

   }

   @Test
   public void shouldBeAbleToExtractWithBuild() throws Exception
   {
      Version version = VersionUtil.extract("1.2.50.A");
      Assert.assertEquals(1, version.getMajor());
      Assert.assertEquals(2, version.getMinor());
   }
View Full Code Here

   }

   @Test
   public void shouldReturnZeroVersionOnNull() throws Exception
   {
      Version version = VersionUtil.extract(null);
      Assert.assertEquals(0, version.getMajor());
      Assert.assertEquals(0, version.getMinor());
   }
View Full Code Here

   }

   @Test
   public void shouldReturnZeroVersionOnNullUnMatched() throws Exception
   {
      Version version = VersionUtil.extract("243223.A");
      Assert.assertEquals(0, version.getMajor());
      Assert.assertEquals(0, version.getMinor());
   }
View Full Code Here

   }
  
   @Test
   public void shouldBeGreaterEqual()
   {
      Version greater = VersionUtil.extract("7.1");
      Version then = VersionUtil.extract("7.1");
  
      Assert.assertTrue(VersionUtil.isGraterThenOrEqual(greater, then));
   }
View Full Code Here

   }

   @Test
   public void shouldBeGreaterThen()
   {
      Version greater = VersionUtil.extract("7.2");
      Version then = VersionUtil.extract("7.1");
  
      Assert.assertTrue(VersionUtil.isGraterThenOrEqual(greater, then));
   }
View Full Code Here

   }

   @Test
   public void shouldBeLessEqual()
   {
      Version less = VersionUtil.extract("7.1");
      Version then = VersionUtil.extract("7.1");
  
      Assert.assertTrue(VersionUtil.isLessThenOrEqual(less, then));
   }
View Full Code Here

   }

   @Test
   public void shouldBeLessThen()
   {
      Version less = VersionUtil.extract("7.1");
      Version then = VersionUtil.extract("7.2");
  
      Assert.assertTrue(VersionUtil.isLessThenOrEqual(less, then));
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.container.jetty.embedded_7.JettyEmbeddedDeploymentAppender

Copyright © 2018 www.massapicom. 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.