You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Andrea Del Bene <an...@gmail.com> on 2013/06/13 17:07:36 UTC

A problem with a test method from wicket-time

hi,

I'm having a little weird problem with unit test method 
testCalendarConverterWithDelegate from class  DateConverterTest. If I 
run it from Eclipse everything is fine but if a try to run tests from 
maven I get a failure with the following text (more or less):

Exprected: 
...,YEAR=2011,MONTH=4,WEEK_OF_YEAR=?,WEEK_OF_MONTH=?,DAY_OF_MONTH=7,DAY_OF_YEAR=?,DAY_OF_WEEK=?,DAY_OF_WEEK_IN_MONTH=?,AM_PM=?,HOUR=?,HOUR_OF_DAY=?,MINUTE=?,SECOND=?,MILLISECOND=?,ZONE_OFFSET=?,DST_OFFSET=?]>


but was:
,YEAR=2011,MONTH=4,WEEK_OF_YEAR=18,WEEK_OF_MONTH=1,DAY_OF_MONTH=6,DAY_OF_YEAR=126,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=2,HOUR_OF_DAY=2,MINUTE=0,SECOND=0,MILLISECOND=0,ZONE_OFFSET=3600000,DST_OFFSET=3600000

so basically the expected text has quotation marks instead of real 
values. Any idea of what could be the problem?

Re: A problem with a test method from wicket-time

Posted by Sven Meier <sv...@meiers.net>.
Thanks Andrea for you hint :).

I've fixed it here, checkin will follow soon.

Sven

On 06/13/2013 07:36 PM, Andrea Del Bene wrote:
> I've got this problem on my machine at work. On my personal laptop, 
> which has the same configuration (Ubuntu 12.04 64bit, Java 7) I don't 
> have any problem :-/.
> BUT I've noted that if we try to run the single test method via maven 
> (mvn -Dtest=DateConverterTest#testCalendar<...> test) it works fine. 
> We can also run without problems all the test methods of class 
> DateConverterTest (mvn -Dtest=DateConverterTest test). We could 
> proceed removing the test classes from wicket-datetime until we find 
> the one that causes the problem...
>> Same here: in Eclipse is runs fine but not from the console.
>>
>> >Help him debug it !
>>
>> Yes, please help me ;).
>>
>> Sven
>>
>>
>> On 06/13/2013 05:20 PM, Andrea Del Bene wrote:
>>> It was just right above my nose :)
>>>> Hi Andrea,
>>>>
>>>> Sven wrote a mail to dev@ about this problem yesterday.
>>>> Help him debug it !
>>>>
>>>>
>>>> On Thu, Jun 13, 2013 at 6:07 PM, Andrea Del Bene 
>>>> <an...@gmail.com>wrote:
>>>>
>>>>> hi,
>>>>>
>>>>> I'm having a little weird problem with unit test method
>>>>> testCalendarConverterWithDeleg**ate from class DateConverterTest. 
>>>>> If I
>>>>> run it from Eclipse everything is fine but if a try to run tests 
>>>>> from maven
>>>>> I get a failure with the following text (more or less):
>>>>>
>>>>> Exprected: 
>>>>> ...,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=?,WEEK_OF_MONTH=?,DAY_OF_*
>>>>> *MONTH=7,DAY_OF_YEAR=?,DAY_OF_**WEEK=?,DAY_OF_WEEK_IN_MONTH=?,**
>>>>> AM_PM=?,HOUR=?,HOUR_OF_DAY=?,**MINUTE=?,SECOND=?,MILLISECOND=**
>>>>> ?,ZONE_OFFSET=?,DST_OFFSET=?]>
>>>>>
>>>>>
>>>>> but was:
>>>>> ,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=18,WEEK_OF_MONTH=1,DAY_**
>>>>> OF_MONTH=6,DAY_OF_YEAR=126,**DAY_OF_WEEK=6,DAY_OF_WEEK_IN_**
>>>>> MONTH=1,AM_PM=0,HOUR=2,HOUR_**OF_DAY=2,MINUTE=0,SECOND=0,**
>>>>> MILLISECOND=0,ZONE_OFFSET=**3600000,DST_OFFSET=3600000
>>>>>
>>>>> so basically the expected text has quotation marks instead of real 
>>>>> values.
>>>>> Any idea of what could be the problem?
>>>>>
>>>
>>
>


Re: A problem with a test method from wicket-time

Posted by Andrea Del Bene <an...@gmail.com>.
I've got this problem on my machine at work. On my personal laptop, 
which has the same configuration (Ubuntu 12.04 64bit, Java 7) I don't 
have any problem :-/.
BUT I've noted that if we try to run the single test method via maven 
(mvn -Dtest=DateConverterTest#testCalendar<...> test) it works fine. We 
can also run without problems all the test methods of class 
DateConverterTest (mvn -Dtest=DateConverterTest test). We could proceed 
removing the test classes from wicket-datetime until we find the one 
that causes the problem...
> Same here: in Eclipse is runs fine but not from the console.
>
> >Help him debug it !
>
> Yes, please help me ;).
>
> Sven
>
>
> On 06/13/2013 05:20 PM, Andrea Del Bene wrote:
>> It was just right above my nose :)
>>> Hi Andrea,
>>>
>>> Sven wrote a mail to dev@ about this problem yesterday.
>>> Help him debug it !
>>>
>>>
>>> On Thu, Jun 13, 2013 at 6:07 PM, Andrea Del Bene 
>>> <an...@gmail.com>wrote:
>>>
>>>> hi,
>>>>
>>>> I'm having a little weird problem with unit test method
>>>> testCalendarConverterWithDeleg**ate from class DateConverterTest. If I
>>>> run it from Eclipse everything is fine but if a try to run tests 
>>>> from maven
>>>> I get a failure with the following text (more or less):
>>>>
>>>> Exprected: 
>>>> ...,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=?,WEEK_OF_MONTH=?,DAY_OF_*
>>>> *MONTH=7,DAY_OF_YEAR=?,DAY_OF_**WEEK=?,DAY_OF_WEEK_IN_MONTH=?,**
>>>> AM_PM=?,HOUR=?,HOUR_OF_DAY=?,**MINUTE=?,SECOND=?,MILLISECOND=**
>>>> ?,ZONE_OFFSET=?,DST_OFFSET=?]>
>>>>
>>>>
>>>> but was:
>>>> ,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=18,WEEK_OF_MONTH=1,DAY_**
>>>> OF_MONTH=6,DAY_OF_YEAR=126,**DAY_OF_WEEK=6,DAY_OF_WEEK_IN_**
>>>> MONTH=1,AM_PM=0,HOUR=2,HOUR_**OF_DAY=2,MINUTE=0,SECOND=0,**
>>>> MILLISECOND=0,ZONE_OFFSET=**3600000,DST_OFFSET=3600000
>>>>
>>>> so basically the expected text has quotation marks instead of real 
>>>> values.
>>>> Any idea of what could be the problem?
>>>>
>>
>


Re: A problem with a test method from wicket-time

Posted by Sven Meier <sv...@meiers.net>.
Same here: in Eclipse is runs fine but not from the console.

 >Help him debug it !

Yes, please help me ;).

Sven


On 06/13/2013 05:20 PM, Andrea Del Bene wrote:
> It was just right above my nose :)
>> Hi Andrea,
>>
>> Sven wrote a mail to dev@ about this problem yesterday.
>> Help him debug it !
>>
>>
>> On Thu, Jun 13, 2013 at 6:07 PM, Andrea Del Bene 
>> <an...@gmail.com>wrote:
>>
>>> hi,
>>>
>>> I'm having a little weird problem with unit test method
>>> testCalendarConverterWithDeleg**ate from class DateConverterTest. If I
>>> run it from Eclipse everything is fine but if a try to run tests 
>>> from maven
>>> I get a failure with the following text (more or less):
>>>
>>> Exprected: 
>>> ...,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=?,WEEK_OF_MONTH=?,DAY_OF_*
>>> *MONTH=7,DAY_OF_YEAR=?,DAY_OF_**WEEK=?,DAY_OF_WEEK_IN_MONTH=?,**
>>> AM_PM=?,HOUR=?,HOUR_OF_DAY=?,**MINUTE=?,SECOND=?,MILLISECOND=**
>>> ?,ZONE_OFFSET=?,DST_OFFSET=?]>
>>>
>>>
>>> but was:
>>> ,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=18,WEEK_OF_MONTH=1,DAY_**
>>> OF_MONTH=6,DAY_OF_YEAR=126,**DAY_OF_WEEK=6,DAY_OF_WEEK_IN_**
>>> MONTH=1,AM_PM=0,HOUR=2,HOUR_**OF_DAY=2,MINUTE=0,SECOND=0,**
>>> MILLISECOND=0,ZONE_OFFSET=**3600000,DST_OFFSET=3600000
>>>
>>> so basically the expected text has quotation marks instead of real 
>>> values.
>>> Any idea of what could be the problem?
>>>
>


Re: A problem with a test method from wicket-time

Posted by Andrea Del Bene <an...@gmail.com>.
It was just right above my nose :)
> Hi Andrea,
>
> Sven wrote a mail to dev@ about this problem yesterday.
> Help him debug it !
>
>
> On Thu, Jun 13, 2013 at 6:07 PM, Andrea Del Bene <an...@gmail.com>wrote:
>
>> hi,
>>
>> I'm having a little weird problem with unit test method
>> testCalendarConverterWithDeleg**ate from class  DateConverterTest. If I
>> run it from Eclipse everything is fine but if a try to run tests from maven
>> I get a failure with the following text (more or less):
>>
>> Exprected: ...,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=?,WEEK_OF_MONTH=?,DAY_OF_*
>> *MONTH=7,DAY_OF_YEAR=?,DAY_OF_**WEEK=?,DAY_OF_WEEK_IN_MONTH=?,**
>> AM_PM=?,HOUR=?,HOUR_OF_DAY=?,**MINUTE=?,SECOND=?,MILLISECOND=**
>> ?,ZONE_OFFSET=?,DST_OFFSET=?]>
>>
>>
>> but was:
>> ,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=18,WEEK_OF_MONTH=1,DAY_**
>> OF_MONTH=6,DAY_OF_YEAR=126,**DAY_OF_WEEK=6,DAY_OF_WEEK_IN_**
>> MONTH=1,AM_PM=0,HOUR=2,HOUR_**OF_DAY=2,MINUTE=0,SECOND=0,**
>> MILLISECOND=0,ZONE_OFFSET=**3600000,DST_OFFSET=3600000
>>
>> so basically the expected text has quotation marks instead of real values.
>> Any idea of what could be the problem?
>>


Re: A problem with a test method from wicket-time

Posted by Martin Grigorov <mg...@apache.org>.
Hi Andrea,

Sven wrote a mail to dev@ about this problem yesterday.
Help him debug it !


On Thu, Jun 13, 2013 at 6:07 PM, Andrea Del Bene <an...@gmail.com>wrote:

> hi,
>
> I'm having a little weird problem with unit test method
> testCalendarConverterWithDeleg**ate from class  DateConverterTest. If I
> run it from Eclipse everything is fine but if a try to run tests from maven
> I get a failure with the following text (more or less):
>
> Exprected: ...,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=?,WEEK_OF_MONTH=?,DAY_OF_*
> *MONTH=7,DAY_OF_YEAR=?,DAY_OF_**WEEK=?,DAY_OF_WEEK_IN_MONTH=?,**
> AM_PM=?,HOUR=?,HOUR_OF_DAY=?,**MINUTE=?,SECOND=?,MILLISECOND=**
> ?,ZONE_OFFSET=?,DST_OFFSET=?]>
>
>
> but was:
> ,YEAR=2011,MONTH=4,WEEK_OF_**YEAR=18,WEEK_OF_MONTH=1,DAY_**
> OF_MONTH=6,DAY_OF_YEAR=126,**DAY_OF_WEEK=6,DAY_OF_WEEK_IN_**
> MONTH=1,AM_PM=0,HOUR=2,HOUR_**OF_DAY=2,MINUTE=0,SECOND=0,**
> MILLISECOND=0,ZONE_OFFSET=**3600000,DST_OFFSET=3600000
>
> so basically the expected text has quotation marks instead of real values.
> Any idea of what could be the problem?
>