public class CalendarSyncVerticleTests
extends java.lang.Object
CalendarSyncVerticle| Constructor and Description |
|---|
CalendarSyncVerticleTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
before() |
void |
startIcsHttpServer() |
void |
teardown() |
void |
testBadIcsContent()
Test updating a calendar with bad ICS content.
|
void |
testETagChanges()
Check we change the ICS content when the entity-tag (a.k.a.
|
void |
testETagNoChange()
Check we do not change the ICS content when the entity-tag (a.k.a.
|
void |
testLastModifiedChanges()
Check we change the ICS content when Last-Modified (If-Modified-Since)
changes.
|
void |
testLastModifiedGoogle()
Check we do not update the ICS content when dealing with a google calendar
which changes at each request because of the DTSTAMP line.
|
void |
testLastModifiedModificationDateChanges()
Check we change the ICS content when Content-Disposition/modification-date
(If-Modified-Since) changes.
|
void |
testLastModifiedModificationDateNoChange()
Check we do not change the ICS content when the
Content-Disposition/modification-date (If-Modified-Since) header does not
change.
|
void |
testLastModifiedNo304()
Check we do not change the ICS content when lastModified timestamp has not
changed even if we do not receive a 304 response status.
|
void |
testLastModifiedNoChange()
Check we do not change the ICS content when the Last-Modified
(If-Modified-Since) header does not change.
|
void |
testMd5NoChanges()
Check we do not update a calendar when its MD5 checksum has not changed, even
if we receive a 200 response.
|
void |
testNextSyncExpireTomorrow()
Check we do not sync when the Expire header is set to tomorrow.
Note: 'Expire' races against the min delay (set in domain settings). |
void |
testNextSyncExpireYesterday()
Check we do have a sync when the Expire header is set to yesterday.
|
void |
testNextSyncMaxAgeTomorrow()
Check we do not sync when the Cache-Control/max-age header is set to
tomorrow.
Note: 'max-age' races against the min delay (set in domain settings). |
void |
testNextSyncMaxAgeYesterday()
Check we do have a sync when the Cache-Control/max-age header is set to
yesterday.
|
void |
testNoChanges()
Trigger several times the sync for a never-changing ics ("MD5 mechanism" is
triggered).
|
void |
testPriority()
Test the priority mechanism.
|
void |
testTooManyChanges()
Test an ICS with too much changes, it should not be sync-able the 4th
time.
Note: In this test, icsHttpServer will alternatively return a
calendar with 51 events or just 1 each time a sync is requested (in order to
reach the 'too much changes error' limit |
void |
testTooManyChangesShouldNotUseUnhandledEvents() |
void |
testWithChanges()
Trigger several times the sync for a changing ics (one more event each time).
|
void |
testWithChangesBigDelay()
Due to a big minimum delay between synchronizations, no more than one sync
should be done.
|
public void before()
throws java.lang.Exception
java.lang.Exceptionpublic void startIcsHttpServer()
public void teardown()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoChanges()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testWithChanges()
throws java.lang.Exception
java.lang.Exceptionpublic void testWithChangesBigDelay()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testTooManyChanges()
throws java.lang.InterruptedException
icsHttpServer will alternatively return a
calendar with 51 events or just 1 each time a sync is requested (in order to
reach the 'too much changes error' limitjava.lang.InterruptedExceptionpublic void testTooManyChangesShouldNotUseUnhandledEvents()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testBadIcsContent()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testETagNoChange()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testETagChanges()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testLastModifiedNoChange()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testLastModifiedChanges()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testLastModifiedModificationDateNoChange()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testLastModifiedModificationDateChanges()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testLastModifiedNo304()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testLastModifiedGoogle()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testNextSyncExpireTomorrow()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testNextSyncExpireYesterday()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testNextSyncMaxAgeTomorrow()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testNextSyncMaxAgeYesterday()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testMd5NoChanges()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testPriority()
Copyright © 2022. All Rights Reserved.