Search in sources :

Example 16 with MingleConfig

use of com.thoughtworks.go.config.MingleConfig in project gocd by gocd.

the class MingleCardTest method shouldNotBeEqualToAnotherMingleCardWithDifferentConfigButSameCardNumber.

@Test
public void shouldNotBeEqualToAnotherMingleCardWithDifferentConfigButSameCardNumber() {
    MingleCard card1 = new MingleCard(new MingleConfig("mingle-url", "project-name", null), "#1234");
    MingleCard card2 = new MingleCard(new MingleConfig("mingle-url", "another-project-name", null), "#1234");
    assertThat(card1.equals(card2), is(false));
}
Also used : MingleConfig(com.thoughtworks.go.config.MingleConfig) Test(org.junit.Test)

Example 17 with MingleConfig

use of com.thoughtworks.go.config.MingleConfig in project gocd by gocd.

the class MingleCardTest method shouldNotBeEqualToAnotherMingleCardWithSameConfigButDifferentCardNumber.

@Test
public void shouldNotBeEqualToAnotherMingleCardWithSameConfigButDifferentCardNumber() {
    MingleCard card1 = new MingleCard(new MingleConfig("mingle-url", "project-name", null), "#1234");
    MingleCard card2 = new MingleCard(new MingleConfig("mingle-url", "project-name", null), "#5678");
    assertThat(card1.equals(card2), is(false));
}
Also used : MingleConfig(com.thoughtworks.go.config.MingleConfig) Test(org.junit.Test)

Aggregations

MingleConfig (com.thoughtworks.go.config.MingleConfig)17 Test (org.junit.Test)15 TrackingTool (com.thoughtworks.go.config.TrackingTool)3 ConfigSaveValidationContext (com.thoughtworks.go.config.ConfigSaveValidationContext)2 PipelineInstanceModel (com.thoughtworks.go.presentation.pipelinehistory.PipelineInstanceModel)2 CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)1 PipelineConfig (com.thoughtworks.go.config.PipelineConfig)1 StageIdentifier (com.thoughtworks.go.domain.StageIdentifier)1 PipelineModel (com.thoughtworks.go.presentation.pipelinehistory.PipelineModel)1 StageInstanceModels (com.thoughtworks.go.presentation.pipelinehistory.StageInstanceModels)1 MingleCard (com.thoughtworks.go.server.ui.MingleCard)1 Date (java.util.Date)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 SingletonMap (org.apache.commons.collections.map.SingletonMap)1