New issue report by ar...@arielvalentin.com:
What steps will reproduce the problem?
1. Checkout revision 228
2a. Execute "ant" in a terminal window
2b. You may also run the tests in Intellij
What is the expected output? What do you see instead?
I haven't taken a look into the root cause of these errors. I assume that
the build is ok?
What version of the product are you using? On what operating system?
revision 228
Mac OSX
Please provide any additional information below
Executing through Intellij
Injected: ATestInjectee{thing='ragtimegal',
stringWrap=AGenericInjectee{list=[hello, my, baby],
anotherGenericInjectee=AnotherGenericInjectee{ts=[hello, my, baby]}},
numberWrap=AGenericInjectee{list=[1, 2, 3, 5, 8, 13],
anotherGenericInjectee=AnotherGenericInjectee{ts=[1, 2, 3, 5, 8, 13]}}}
java.lang.AssertionError
at com.wideplay.warp.util.TextToolsTest.testTokenize(TextToolsTest.java:32)
java.lang.AssertionError
at com.wideplay.warp.util.TextToolsTest.testTokenize(TextToolsTest.java:32)
java.lang.AssertionError
at com.wideplay.warp.util.TextToolsTest.testTokenize(TextToolsTest.java:32)
java.lang.AssertionError: Contextual (current) var not set:
{page={things=[com.wideplay.warp.widgets.RepeatWidgetTest$Thing@627bc7,
com.wideplay.warp.widgets.RepeatWidgetTest$Thing@ac4f3e,
com.wideplay.warp.widgets.RepeatWidgetTest$Thing@86b0ee]}}
at
com.wideplay.warp.widgets.RepeatWidgetTest$6.render(RepeatWidgetTest.java:80)
at com.wideplay.warp.widgets.RepeatWidget.render(RepeatWidget.java:67)
at
com.wideplay.warp.widgets.RepeatWidgetTest.repeatNumberOfTimesWithVars(RepeatWidgetTest.java:86)
java.lang.NullPointerException
at com.wideplay.warp.widgets.TemplateLoader.load(TemplateLoader.java:45)
at
com.wideplay.warp.widgets.TemplateLoaderTest.loadExplicitXmlTemplate(TemplateLoaderTest.java:24)
Jun 21, 2008 10:12:21 PM
com.wideplay.warp.widgets.binding.MvelRequestBinder bind
WARNING: A property could not be bound, but not necessarily an error: hiphop
Jun 21, 2008 10:12:21 PM
com.wideplay.warp.widgets.binding.MvelRequestBinder bind
WARNING: A property could not be bound, but not necessarily an error: weight
ANT BUILD OUTPUT
==================================
[testng] FAILED: repeatNumberOfTimesWithVars("items=things,
pageVar='page'",
{things=[com.wideplay.warp.widgets.RepeatWidgetTest$Thing@eee7b7,
com.wideplay.warp.widgets.RepeatWidgetTest$Thing@aedbde,
com.wideplay.warp.widgets.RepeatWidgetTest$Thing@e4d7f7]}, 3, "this")
[testng] java.lang.AssertionError: Contextual (current) var not set:
{page={things=[com.wideplay.warp.widgets.RepeatWidgetTest$Thing@eee7b7,
com.wideplay.warp.widgets.RepeatWidgetTest$Thing@aedbde,
com.wideplay.warp.widgets.RepeatWidgetTest$Thing@e4d7f7]}}
[testng] at
com.wideplay.warp.widgets.RepeatWidgetTest$6.render(RepeatWidgetTest.java:80)
[testng] at
com.wideplay.warp.widgets.RepeatWidget.render(RepeatWidget.java:67)
[testng] at
com.wideplay.warp.widgets.RepeatWidgetTest.repeatNumberOfTimesWithVars(RepeatWidgetTest.java:86)
[testng] ... Removed 21 stack frames
[testng]
[testng] ===============================================
[testng] Ant test
[testng] Tests run: 188, Failures: 1, Skips: 0
[testng] ===============================================
[testng]
[testng]
[testng] ===============================================
[testng] warp-widgets unit tests
[testng] Total tests run: 188, Failures: 1, Skips: 0
[testng] ===============================================
[testng]
.
Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 by dhanji:
This should be fixed now in revision #229. Make sure you use var= in
@Repeat widgets as a good practice.
Anyway this bug doesn't affect the current build (0.5).
Issue attribute updates:
Status: Fixed
Rex