@@ -0,0 +1,1242 @@
+package fr.bouyguestelecom.tv.bboxiotsample.test;%0A%0Aimport android.test.AndroidTestCase;%0A%0Aimport java.util.Date;%0A%0Aimport fr.bouyguestelecom.tv.bboxiotsample.AssociationEventObj;%0A%0A/**%0A * @author Bertrand Martel%0A */%0Apublic class AssociationEventObjTest extends AndroidTestCase %7B%0A%0A    private AssociationEventObj eventObject = null;%0A    private String deviceUid = %22deviceUidTest%22;%0A    private String eventStr = %22eventTeset%22;%0A%0A    public AssociationEventObjTest() %7B%0A        eventObject = new AssociationEventObj(deviceUid, eventStr);%0A        assertNotNull(%22AssociationEventObj is null%22, eventObject);%0A    %7D%0A%0A    public void getDateTest() %7B%0A        assertNotNull(%22association event date is null%22, eventObject.getDate());%0A        assertTrue(%22date is invalid (too old)%22, eventObject.getDate().getTime() %3E= (new Date().getTime()));%0A    %7D%0A%0A    public void getDeviceUidTest() %7B%0A        assertNotNull(%22deice uid is null%22, eventObject.getDeviceUid());%0A        assertTrue(%22device uid invalid%22, eventObject.getDeviceUid().equals(deviceUid));%0A    %7D%0A%0A    public void getEventStrTest() %7B%0A        assertNotNull(%22event content is null%22, eventObject.getEventStr());%0A        assertTrue(%22event content invalid%22, eventObject.getEventStr().equals(eventStr));%0A    %7D%0A%7D%0A

add association event obj test