Пример #1
0
  public void testString() {
    assertEquals(null, conceptClass.getString());
    conceptClass.setString(stringValue);
    assertEquals(stringValue, conceptClass.getString());

    assertEquals(null, concept.getString());
    concept.setString(stringValue);
    assertEquals(stringValue, concept.getString());

    assertEquals(null, behaviour.getString());
    behaviour.setString(stringValue);
    assertEquals(stringValue, behaviour.getString());
  }
Пример #2
0
  public void testInteger() {
    assertEquals(null, conceptClass.getIn());
    conceptClass.setIn(intValue);
    assertEquals(intValue, conceptClass.getIn());

    assertEquals(null, concept.getInt());
    concept.setInt(intValue);
    assertEquals(intValue, concept.getInt());

    assertEquals(null, behaviour.getInt());
    behaviour.setInt(intValue);
    assertEquals(intValue, behaviour.getInt());
  }
Пример #3
0
  public void testShort() {
    assertEquals(null, conceptClass.getShor());
    conceptClass.setShor(shortValue);
    assertEquals(shortValue, conceptClass.getShor());

    assertEquals(null, concept.getShort());
    concept.setShort(shortValue);
    assertEquals(shortValue, concept.getShort());

    assertEquals(null, behaviour.getShort());
    behaviour.setShort(shortValue);
    assertEquals(shortValue, behaviour.getShort());
  }
Пример #4
0
  public void testFloat() {
    assertEquals(null, conceptClass.getFlo());
    conceptClass.setFlo(floatValue);
    assertEquals(floatValue, conceptClass.getFlo());

    assertEquals(null, concept.getFloat());
    concept.setFloat(floatValue);
    assertEquals(floatValue, concept.getFloat());

    assertEquals(null, behaviour.getFloat());
    behaviour.setFloat(floatValue);
    assertEquals(floatValue, behaviour.getFloat());
  }
Пример #5
0
  public void testDouble() {
    assertEquals(null, conceptClass.getDoub());
    conceptClass.setDoub(doubleValue);
    assertEquals(doubleValue, conceptClass.getDoub());

    assertEquals(null, concept.getDouble());
    concept.setDouble(doubleValue);
    assertEquals(doubleValue, concept.getDouble());

    assertEquals(null, behaviour.getDouble());
    behaviour.setDouble(doubleValue);
    assertEquals(doubleValue, behaviour.getDouble());
  }
Пример #6
0
  public void testCharacter() {
    assertEquals(null, conceptClass.getChr());
    conceptClass.setChr(charValue);
    assertEquals(charValue, conceptClass.getChr());

    assertEquals(null, concept.getChar());
    concept.setChar(charValue);
    assertEquals(charValue, concept.getChar());

    assertEquals(null, behaviour.getChar());
    behaviour.setChar(charValue);
    assertEquals(charValue, behaviour.getChar());
  }
Пример #7
0
  public void testByte() {
    assertEquals(null, conceptClass.getB());
    conceptClass.setB(byteValue);
    assertEquals(byteValue, conceptClass.getB());

    assertEquals(null, concept.getByte());
    concept.setByte(byteValue);
    assertEquals(byteValue, concept.getByte());

    assertEquals(null, behaviour.getByte());
    behaviour.setByte(byteValue);
    assertEquals(byteValue, behaviour.getByte());
  }
Пример #8
0
  public void testBoolean() {
    assertEquals(null, conceptClass.getBool());
    conceptClass.setBool(booleanValue);
    assertEquals(booleanValue, conceptClass.getBool());

    assertEquals(null, concept.getBoolean());
    concept.setBoolean(booleanValue);
    assertEquals(booleanValue, concept.getBoolean());

    assertEquals(null, behaviour.getBoolean());
    behaviour.setBoolean(booleanValue);
    assertEquals(booleanValue, behaviour.getBoolean());
  }