Package at.kugel.tool.buildtray.config

Examples of at.kugel.tool.buildtray.config.IntegrationTestConfig


      assertEquals("2009-03-09T12:11:12Z", res.date);
   }

   @Test
   public void testBusy() {
      IntegrationTestConfig mockConf = createConfig();
      mockConf.setServerlUrl4Test(getTestDataUrl("hudson-1.2_busy.xml"));

      IntegrationStatusResult res = refreshWith(mockConf);

      assertNull(res.error);
      assertEquals("krimi_6.7.0_CS #5", res.projectName);
View Full Code Here


      return createConfig("./config/Hudson-1.2-no_busy.properties");
   }

   @Test
   public void shouldFailOnFaulureInFirstResponse() {
      IntegrationTestConfig mockConf1 = createFirstConfig();
      mockConf1.setServerlUrl4Test(getTestDataUrl("Jenkins-1.4_failed.xml"));
      IntegrationTestConfig mockConf2 = createSecondConfig();
      mockConf2.setServerlUrl4Test(getTestDataUrl("hudson-1.2_success.xml"));

      IntegrationStatusResult res = refreshWith(new Config[] { mockConf1, mockConf2 });

      assertNull(res.error);
      assertEquals("commons-solr-copy #2", res.projectName);
View Full Code Here

      assertEquals(Status.FAILED, res.status);
   }

   @Test
   public void shouldFailOnFaulureInSecondResponse() {
      IntegrationTestConfig mockConf1 = createFirstConfig();
      mockConf1.setServerlUrl4Test(getTestDataUrl("Jenkins-1.4_success.xml"));
      IntegrationTestConfig mockConf2 = createSecondConfig();
      mockConf2.setServerlUrl4Test(getTestDataUrl("hudson-1.2_failed.xml"));

      IntegrationStatusResult res = refreshWith(new Config[] { mockConf1, mockConf2 });

      assertNull(res.error);
      assertEquals("Krimi Trunk ANT-M2 for Bea 10 #9", res.projectName);
View Full Code Here

      assertEquals("2009-03-03T06:18:53Z", res.date);
   }

   @Test
   public void shouldSucceedOnBothSuccessResponses() {
      IntegrationTestConfig mockConf1 = createFirstConfig();
      mockConf1.setServerlUrl4Test(getTestDataUrl("Jenkins-1.4_success.xml"));
      IntegrationTestConfig mockConf2 = createSecondConfig();
      mockConf2.setServerlUrl4Test(getTestDataUrl("hudson-1.2_success.xml"));

      IntegrationStatusResult res = refreshWith(new Config[] { mockConf1, mockConf2 });

      assertNull(res.error);
      assertEquals("clients-bbc-iplayer #4", res.projectName);
View Full Code Here

      return createConfig("./config/CruiseControl-2.3.properties");
   }

   @Test
   public void testFailedNewest() {
      IntegrationTestConfig mockConf = createConfig();
      mockConf.setServerlUrl4Test(getTestDataUrl("cruisecontrol-2.3_failed.html"));

      IntegrationStatusResult res = refreshWith(mockConf);

      assertNull(res.error);
      assertEquals("KrimiCEE", res.projectName);
View Full Code Here

      assertEquals("20/01/2009 13:44:52", res.date);
   }

   @Test
   public void testSuccess() {
      IntegrationTestConfig mockConf = createConfig();
      mockConf.setServerlUrl4Test(getTestDataUrl("cruisecontrol-2.3_success.html"));

      IntegrationStatusResult res = refreshWith(mockConf);

      assertNull(res.error);
      assertEquals("KrimiCEE_PROD_5_2_SLSP", res.projectName);
View Full Code Here

      return createConfig("./config/AnthillOS-1.7.properties");
   }

   @Test
   public void testFailedNewest() {
      IntegrationTestConfig mockConf = createConfig();
      mockConf.setServerlUrl4Test(getTestDataUrl("anthill-1.7_newest_failed.html"));

      IntegrationStatusResult res = refreshWith(mockConf);

      assertNull(res.error);
      assertEquals("CVS_Fails_D", res.projectName);
View Full Code Here

      assertEquals("17.01.09 00:04", res.date);
   }

   @Test
   public void testFailedOlder() {
      IntegrationTestConfig mockConf = createConfig();
      mockConf.setServerlUrl4Test(getTestDataUrl("anthill-1.7_older_failed.html"));

      IntegrationStatusResult res = refreshWith(mockConf);

      assertNull(res.error);
      assertEquals("CVS_Fails_D", res.projectName);
View Full Code Here

      assertEquals("17.01.09 00:04", res.date);
   }

   @Test
   public void testSuccess() {
      IntegrationTestConfig mockConf = createConfig();
      mockConf.setServerlUrl4Test(getTestDataUrl("anthil-1.7_success.html"));

      IntegrationStatusResult res = refreshWith(mockConf);

      assertNull(res.error);
      assertEquals("PVCS_Test", res.projectName);
View Full Code Here

import at.kugel.tool.buildtray.status.IntegrationStatusResult;

public abstract class AbstractHtmlRegularExpressionActionsTestCase {

   protected IntegrationTestConfig createConfig(String configPath) {
      return new IntegrationTestConfig(new ReloadingConfig(configPath));
   }
View Full Code Here

TOP

Related Classes of at.kugel.tool.buildtray.config.IntegrationTestConfig

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.