@BeforeClass public static void initTestContextTest() { context = new TestContext("test.xml"); component = new ExpressionAssert(context); component.getProperties().put("EXPRESSION", "input > 'AAA' && input < 'CCC'"); component.init(); }
@Test public void testExpressionAssert() { try { String result = component.process("BBB"); assertEquals("true", result); } catch (ComponentException e) { e.printStackTrace(); } }