Class org.springframework.scripting.bsh.BshScriptFactoryTests
|
100%
successful |
Tests
| Test | Duration | Result |
|---|---|---|
| applicationEventListener | 0.213s | passed |
| ctorWithEmptyScriptSourceLocator | 0s | passed |
| ctorWithNullScriptSourceLocator | 0s | passed |
| ctorWithWhitespacedScriptSourceLocator | 0s | passed |
| inlineScriptFromTag | 0.181s | passed |
| nonStaticPrototypeScript | 0.048s | passed |
| nonStaticScript | 0.056s | passed |
| prototypeScriptFromTag | 0.267s | passed |
| refreshableFromTag | 0.184s | passed |
| resourceScriptFromTag | 0.270s | passed |
| scriptCompilationException | 0.032s | passed |
| scriptThatCompilesButIsJustPlainBad | 0.028s | passed |
| staticPrototypeScript | 0.188s | passed |
| staticScript | 0.218s | passed |
| staticScriptImplementingInterface | 0.220s | passed |
| staticScriptWithNullReturnValue | 0.248s | passed |
| staticScriptWithTwoInterfacesSpecified | 0.204s | passed |
| staticWithScriptReturningInstance | 0.209s | passed |
Standard output
16:46:13.959 [Test worker] WARN org.springframework.context.support.ClassPathXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broken' defined in class path resource [org/springframework/scripting/bsh/bshBrokenContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scriptedObject.broken' defined in class path resource [org/springframework/scripting/bsh/bshBrokenContext.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.lang.Object]: Factory method 'getScriptedObject' threw exception; nested exception is org.springframework.scripting.ScriptCompilationException: Could not compile class path resource [org/springframework/scripting/bsh/Broken.bsh]; nested exception is In file: inline evaluation of: ``one sure is the loneliest number... that i'll ever know;'' Encountered "is" at line 1, column 10. org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@7421aae8: startup date [Mon Apr 13 16:46:14 CST 2020]; root of context hierarchy] org.springframework.context.event.ContextClosedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@7421aae8: startup date [Mon Apr 13 16:46:14 CST 2020]; root of context hierarchy] org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@72864842: startup date [Mon Apr 13 16:46:14 CST 2020]; root of context hierarchy] org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@1cc3504a: startup date [Mon Apr 13 16:46:15 CST 2020]; root of context hierarchy] org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@3279c6e5: startup date [Mon Apr 13 16:46:15 CST 2020]; root of context hierarchy] org.springframework.scripting.bsh.BshScriptFactoryTests$MyEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@3279c6e5: startup date [Mon Apr 13 16:46:15 CST 2020]; root of context hierarchy] org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.context.support.ClassPathXmlApplicationContext@4e736f35: startup date [Mon Apr 13 16:46:16 CST 2020]; root of context hierarchy]