removed all checkstyle errors, updated sprint backlog
[staff/due1/sed-hs15-srs-purple.git] / src / test / java / ch / bfh / ti / srs / dataschema / ReservationTest.java
index a48b593..c4c7a39 100644 (file)
@@ -40,8 +40,9 @@ public class ReservationTest {
                Resource testResource = new Resource("N321", "class room");\r
                DateRange testDr = factory.createDateRange(DateFactory.createDate(2015, 11, 9),\r
                                DateFactory.createDate(2015, 11, 13));\r
-               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr, "TestReservation");\r
-               \r
+               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr,\r
+                               "TestReservation");\r
+\r
                assertNotEquals(null, testReservation.getId());\r
                assertNotEquals(null, testReservation.getGroupId());\r
                assertEquals(testUser, testReservation.getUser());\r
@@ -49,14 +50,15 @@ public class ReservationTest {
                assertEquals(testDr, testReservation.getDateRange());\r
                assertEquals("TestReservation", testReservation.getRemark());\r
        }\r
-       \r
+\r
        @Test\r
        public void setAndGetNameTest() throws Exception {\r
                User testUser = new User("TestUser", "pass");\r
                Resource testResource = new Resource("N321", "class room");\r
                DateRange testDr = factory.createDateRange(DateFactory.createDate(2015, 11, 9),\r
                                DateFactory.createDate(2015, 11, 13));\r
-               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr, "TestReservation");\r
+               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr,\r
+                               "TestReservation");\r
 \r
                testReservation.setRemark("otherTestReservation");\r
                assertEquals("otherTestReservation", testReservation.getRemark());\r
@@ -68,7 +70,8 @@ public class ReservationTest {
                Resource testResource = new Resource("N321", "class room");\r
                DateRange testDr = factory.createDateRange(DateFactory.createDate(2015, 11, 9),\r
                                DateFactory.createDate(2015, 11, 13));\r
-               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr, "TestReservation");\r
+               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr,\r
+                               "TestReservation");\r
 \r
                User otherTestUser = new User("otherTestUser", "pass");\r
                testReservation.setUser(otherTestUser);\r
@@ -81,7 +84,8 @@ public class ReservationTest {
                Resource testResource = new Resource("N321", "class room");\r
                DateRange testDr = factory.createDateRange(DateFactory.createDate(2015, 11, 9),\r
                                DateFactory.createDate(2015, 11, 13));\r
-               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr, "TestReservation");\r
+               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr,\r
+                               "TestReservation");\r
 \r
                Resource OtherTestResource = new Resource("N421", "lecture hall");\r
                testReservation.setResource(OtherTestResource);\r
@@ -94,7 +98,8 @@ public class ReservationTest {
                Resource testResource = new Resource("N321", "class room");\r
                DateRange testDr = factory.createDateRange(DateFactory.createDate(2015, 11, 9),\r
                                DateFactory.createDate(2015, 11, 13));\r
-               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr, "TestReservation");\r
+               Reservation testReservation = new Reservation(UUID.randomUUID(), testUser, testResource, testDr,\r
+                               "TestReservation");\r
 \r
                DateRange otherTestDr = factory.createDateRange(DateFactory.createDate(2015, 12, 9),\r
                                DateFactory.createDate(2015, 12, 13));\r