MartinoMensio / DP2-Labs

Distributed Programming 2 Laboratories @ Polytechnic University of Turin
MIT License
1 stars 0 forks source link

Assignment 3 NFFG update time #29

Closed MartinoMensio closed 7 years ago

MartinoMensio commented 7 years ago

From Assignment3a.pdf:

For point 2, when a new NFFG is added, its update time is set to the current time.

MartinoMensio commented 7 years ago

Setting the update time when a new NFFG is added on the service, makes the tests to fail:

    [junit] Testcase: testGetNffgs(it.polito.dp2.NFFG.lab3.tests.NFFGTests_lab1):   FAILED
    [junit] Wrong update time
    [junit] junit.framework.AssertionFailedError: Wrong update time
    [junit]     at it.polito.dp2.NFFG.lab3.tests.NFFGTests_lab1.compareTime(Unknown Source)
    [junit]     at it.polito.dp2.NFFG.lab3.tests.NFFGTests_lab1.compareNffgReader(Unknown Source)
    [junit]     at it.polito.dp2.NFFG.lab3.tests.NFFGTests_lab1.compareNffgSets(Unknown Source)
    [junit]     at it.polito.dp2.NFFG.lab3.tests.NFFGTests_lab1.testGetNffgs(Unknown Source)
    [junit] Test it.polito.dp2.NFFG.lab3.tests.NFFGTests_lab1 FAILED
MartinoMensio commented 7 years ago

The failure of the test is due to the use of testcase=2 that should not be used in this assignment