package com.github.bot.curiosone.core.workflow;

// SUPPRESS CHECKSTYLE AvoidStarImport
import static org.junit.Assert.*;

import org.junit.Test;

public class MessageTest {

  @Test
  public void testInstance() {
    Message msg;

    msg = new Message("How old are you?", "test");
    assertEquals("How old are you?", msg.getMessage());
    assertEquals("test", msg.getScope());
  }
}

@@ -377,11 +377,1240 @@
 ());%0A  %7D
+%0A%0A  @Test%0A  public void testInstantiation() %7B%0A    assertTrue(new Message(%22Text%22, %22Scope%22) instanceof Message);%0A  %7D%0A%0A  @Test%0A  public void testGetMessage() %7B%0A    assertEquals(%22This is the message!%22,%0A        new Message(%22This is the message!%22, %22This is the scope%22)%0A            .getMessage());%0A  %7D%0A%0A  @Test%0A  public void testGetScope() %7B%0A    assertEquals(%22This is the scope%22,%0A        new Message(%22This is the message!%22, %22This is the scope%22)%0A            .getScope());%0A  %7D%0A%0A  @Test%0A  public void testToString() %7B%0A    assertEquals(%22Text (Scope)%22, new Message(%22Text%22, %22Scope%22).toString());%0A  %7D%0A%0A  @Test%0A  public void testEquals() %7B%0A    Message br = new Message(%22Text%22, %22Scope%22);%0A    assertTrue(br.equals(br));%0A    assertFalse(br.equals(null));%0A    assertFalse(br.equals(new Integer(42)));%0A    Message brr = new Message(%22Text%22, %22Scope%22);%0A    assertTrue(br.equals(brr));%0A    brr = new Message(%22text%22, %22scope%22);%0A    assertFalse(br.equals(brr));%0A  %7D%0A%0A  @Test%0A  public void testHashCode() %7B%0A    assertEquals(new Message(%22Happy%22, %22Scope.of(Happy)%22).hashCode(),%0A        new Message(%22Happy%22, %22Scope.of(Happy)%22).hashCode());%0A%0A    assertNotEquals(new Message(%22Different%22, %22Message%22).hashCode(),%0A        new Message(%22Test%22, %22hashCode Scope%22));%0A  %7D
 %0A%7D%0A

add MessageTest