Permalink
Browse files

whitespace, etc

  • Loading branch information...
markfisher committed Sep 11, 2012
1 parent 426eaf6 commit 4d9cd699dde56ea4469c758b99ba6c5095cb75e1
@@ -10,7 +10,7 @@
</parent>
<artifactId>domain</artifactId>
<name>domain</name>
- <url>http://maven.apache.org</url>
+
<dependencies>
<dependency>
<groupId>junit</groupId>
@@ -45,14 +45,14 @@ public String toString() {
@Override
public int hashCode() {
- return super.hashCode(); //To change body of overridden methods use File | Settings | File Templates.
+ return super.hashCode();
}
@Override
public boolean equals(Object obj) {
if(!(obj instanceof FinancialAmount)){
return false;
}
- return super.equals(obj); //To change body of overridden methods use File | Settings | File Templates.
+ return super.equals(obj);
}
}
@@ -9,7 +9,6 @@
@Override
public CancellationConfirmation cancel(CancellationRequest cancellationRequest) {
- //To change body of implemented methods use File | Settings | File Templates.
CancellationConfirmation cancellationConfirmation = new CancellationConfirmation();
cancellationConfirmation.setReservationCode(cancellationRequest.getReservationCode());
cancellationConfirmation.setConfirmationNumber(CONFIRMED);
@@ -3,7 +3,6 @@
import siia.booking.domain.trip.Trip;
/**
- *
* @author Iwein Fuld
*/
public class TripNotification {
@@ -27,7 +27,7 @@
private LegQuoteCommand(){}
public LegQuoteCommand(Leg leg){
- this.leg= leg;
+ this.leg = leg;
}
public Leg getLeg() {
@@ -2,11 +2,9 @@
import java.util.List;
-
/**
* @author Jonas Partner
*/
-
public class TripQuoteRequest {
private List<LegQuoteCommand> legQuoteCommands;
@@ -5,7 +5,6 @@
import java.util.List;
/**
- *
* @author Iwein Fuld
*/
public class TripRepository {
@@ -40,7 +40,7 @@ public void testMarshallingLeg() throws Exception{
StreamResult res = new StreamResult(writer);
marshaller.marshal(leg, res);
- assertXMLEqual("Leg marshalling incorrect",marshalledLeg, writer.getBuffer().toString());
+ assertXMLEqual("Leg marshalling incorrect", marshalledLeg, writer.getBuffer().toString());
}
}
@@ -1,18 +1,19 @@
package siia.booking.domain.trip;
import static org.junit.Assert.*;
+import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual;
+import org.joda.time.DateTime;
+import org.junit.Before;
+import org.junit.Test;
+import org.springframework.oxm.jaxb.Jaxb2Marshaller;
import siia.booking.domain.Location;
import siia.booking.domain.car.CarCriteria;
import siia.booking.domain.car.CarType;
import siia.booking.domain.flight.FlightCriteria;
import siia.booking.domain.flight.FlightSeatClass;
import siia.booking.domain.hotel.HotelCriteria;
import siia.booking.domain.hotel.RoomType;
-import org.joda.time.DateTime;
-import org.junit.Before;
-import org.junit.Test;
-import org.springframework.oxm.jaxb.Jaxb2Marshaller;
import siia.booking.domain.trip.Leg;
import siia.booking.domain.trip.LegQuoteCommand;
@@ -21,8 +22,6 @@
import java.io.StringReader;
import java.io.StringWriter;
-import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual;
-
/**
* @author Jonas Partner
*/
@@ -83,9 +82,7 @@ public void testUnmarshallingLeg() throws Exception {
Object unmarshalled = marshaller.unmarshal(source);
assertEquals("Wrong class returned by unmrshalling", LegQuoteCommand.class, unmarshalled.getClass());
LegQuoteCommand legQuoteReq = (LegQuoteCommand)unmarshalled;
- assertEquals("Wrong leg location",exampleLegQuote.getLeg(), legQuoteReq.getLeg() );
-
+ assertEquals("Wrong leg location", exampleLegQuote.getLeg(), legQuoteReq.getLeg());
}
-
}

0 comments on commit 4d9cd69

Please sign in to comment.