LifeOfARecurrence (Which classes are involved in each stage of processing an RR...) Wiki page commented on by indu.singhal
- Hi, I need to use this recurrence implementation in my application. What is the process for the same?? What steps do I need to follow?? Is there any jar available for this library?
Hi, I need to use this recurrence implementation in my application. What is the process for the same?? What steps do I need to follow?? Is there any jar available for this library?
May 12, 2009
issue 5
(VcalRewriter.rewriteRule("RRULE:MP6 2+ MO TU WE TH FR #10")) reported by william.wjwu
- What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
expected output:
FREQ=MONTHLY;INTERVAL=6;BYDAY=2MO,2TU,2WE,2TH,2FR;COUNT=10
FREQ=MONTHLY;INTERVAL=6;BYDAY=2MO,TU,WE,TH,FR;COUNT=10
What version of the product are you using? On what operating system?
Please provide any additional information below.
According to the document "ivCalendar The Electronic Calendaring and Scheduling
Exchange Format Version 1.0",
Every six months on the 2nd Monday thru Friday for 10 occurences:
MP6 2+ MO TU WE TH FR #10
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
expected output:
FREQ=MONTHLY;INTERVAL=6;BYDAY=2MO,2TU,2WE,2TH,2FR;COUNT=10
FREQ=MONTHLY;INTERVAL=6;BYDAY=2MO,TU,WE,TH,FR;COUNT=10
What version of the product are you using? On what operating system?
Please provide any additional information below.
According to the document "ivCalendar The Electronic Calendaring and Scheduling
Exchange Format Version 1.0",
Every six months on the 2nd Monday thru Friday for 10 occurences:
MP6 2+ MO TU WE TH FR #10
Feb 18, 2009
issue 4
(RecurrenceIteratorFactory.except doesn't honor its contract) reported by yanipig
- A simple JUnit test is needed to reproduce the bug.
public void testExcept() throws Exception
{
RecurrenceIterator rrule
= RecurrenceIteratorFactory
.createRecurrenceIterator(
"RRULE:FREQ=WEEKLY;INTERVAL=3;COUNT=5",
new DateValueImpl(2009, 02, 02),
GMT1);
StringBuilder sb = createRecuranceDateString(rrule);
// test succeed
assertEquals("20090202,20090223,20090316,20090406,20090427",
sb.toString());
RecurrenceIterator rdate
= RecurrenceIteratorFactory
.createRecurrenceIterator(
"RDATE;VALUE=DATE:20090316",
new DateValueImpl(2009, 03, 16),
GMT1);
sb = createRecuranceDateString(rdate);
//test succeed
assertEquals("20090316", sb.toString());
RecurrenceIterator rdateExcept
= RecurrenceIteratorFactory.except(rrule, rdate);
sb = createRecuranceDateString(rdateExcept);
//test FAILED !!
assertEquals("20090202,20090223,20090406,20090427", sb.toString());
}
The last assert returns:
junit.framework.ComparisonFailure:
expected:<20090202,20090223,20090406,20090427>
but was:<>
Thanks for this excellent project,
Regards
Yanick.
A simple JUnit test is needed to reproduce the bug.
public void testExcept() throws Exception
{
RecurrenceIterator rrule
= RecurrenceIteratorFactory
.createRecurrenceIterator(
"RRULE:FREQ=WEEKLY;INTERVAL=3;COUNT=5",
new DateValueImpl(2009, 02, 02),
GMT1);
StringBuilder sb = createRecuranceDateString(rrule);
// test succeed
assertEquals("20090202,20090223,20090316,20090406,20090427",
sb.toString());
RecurrenceIterator rdate
= RecurrenceIteratorFactory
.createRecurrenceIterator(
"RDATE;VALUE=DATE:20090316",
new DateValueImpl(2009, 03, 16),
GMT1);
sb = createRecuranceDateString(rdate);
//test succeed
assertEquals("20090316", sb.toString());
RecurrenceIterator rdateExcept
= RecurrenceIteratorFactory.except(rrule, rdate);
sb = createRecuranceDateString(rdateExcept);
//test FAILED !!
assertEquals("20090202,20090223,20090406,20090427", sb.toString());
}
The last assert returns:
junit.framework.ComparisonFailure:
expected:<20090202,20090223,20090406,20090427>
but was:<>
Thanks for this excellent project,
Regards
Yanick.