use of com.github.bordertech.wcomponents.SubordinateTrigger in project wcomponents by BorderTech.
the class GreaterThan_Test method testConstructor.
@Test
public void testConstructor() {
SubordinateTrigger trigger = new MyTrigger();
Object value = new Object();
GreaterThan compare = new GreaterThan(trigger, value);
Assert.assertEquals("Value for GreaterThan is incorrect", value, compare.getValue());
Assert.assertEquals("Trigger for GreaterThan should be the trigger", trigger, compare.getTrigger());
}
use of com.github.bordertech.wcomponents.SubordinateTrigger in project wcomponents by BorderTech.
the class LessThanOrEqual_Test method testConstructor.
@Test
public void testConstructor() {
SubordinateTrigger trigger = new MyTrigger();
Object value = new Object();
LessThanOrEqual compare = new LessThanOrEqual(trigger, value);
Assert.assertEquals("Value for LessThanOrEqual is incorrect", value, compare.getValue());
Assert.assertEquals("Trigger for LessThanOrEqual should be the trigger", trigger, compare.getTrigger());
}
use of com.github.bordertech.wcomponents.SubordinateTrigger in project wcomponents by BorderTech.
the class LessThan_Test method testConstructor.
@Test
public void testConstructor() {
SubordinateTrigger trigger = new MyTrigger();
Object value = new Object();
LessThan compare = new LessThan(trigger, value);
Assert.assertEquals("Value for LessThan is incorrect", value, compare.getValue());
Assert.assertEquals("Trigger for LessThan should be the trigger", trigger, compare.getTrigger());
}
use of com.github.bordertech.wcomponents.SubordinateTrigger in project wcomponents by BorderTech.
the class Match_Test method testConstructor.
@Test
public void testConstructor() {
SubordinateTrigger trigger = new MyTrigger();
String value = "Test";
Match compare = new Match(trigger, value);
Assert.assertEquals("Value for Match is incorrect", value, compare.getValue());
Assert.assertEquals("Trigger for Match should be the trigger", trigger, compare.getTrigger());
}
use of com.github.bordertech.wcomponents.SubordinateTrigger in project wcomponents by BorderTech.
the class CompareExpression_Test method testConstructor.
@Test
public void testConstructor() {
SubordinateTrigger trigger = new WTextField();
String value = "test";
CompareExpression expr = new CompareExpression(CompareType.MATCH, trigger, value);
Assert.assertEquals("Incorrect type", CompareType.MATCH, expr.getType());
Assert.assertEquals("Incorrect trigger", trigger, expr.getTrigger());
Assert.assertEquals("Incorrect value", value, expr.getValue());
}
Aggregations