use of org.springframework.scripting.Calculator in project spring-framework by spring-projects.
the class BshScriptFactoryTests method inlineScriptFromTag.
@Test
public void inlineScriptFromTag() throws Exception {
ApplicationContext ctx = new ClassPathXmlApplicationContext("bsh-with-xsd.xml", getClass());
Calculator calculator = (Calculator) ctx.getBean("calculator");
assertNotNull(calculator);
assertFalse(calculator instanceof Refreshable);
}
Aggregations