Skip to content

Commit

Permalink
Correctly use AbstractDTO in restful booker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ham1 committed Feb 7, 2018
1 parent 7beead0 commit 6837d69
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import java.util.concurrent.ThreadLocalRandom;

public class Booking extends AbstractDTO {
public class Booking extends AbstractDTO<Booking> {
public String firstname;
public String lastname;
public long totalprice;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class BookingDates extends AbstractDTO {
public class BookingDates extends AbstractDTO<BookingDates> {

public static final DateTimeFormatter FORMAT =
DateTimeFormatter.ISO_LOCAL_DATE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.frameworkium.core.api.dto.AbstractDTO;

public class BookingID extends AbstractDTO {
public class BookingID extends AbstractDTO<BookingID> {

public int bookingid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

import com.frameworkium.core.api.dto.AbstractDTO;

public class BookingResponse extends AbstractDTO {
public class BookingResponse extends AbstractDTO<BookingResponse> {
public Booking booking;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.frameworkium.integration.heroku.restfulbooker.api.dto.booking;

public class CreateBookingResponse extends BookingResponse {
import com.frameworkium.core.api.dto.AbstractDTO;

public class CreateBookingResponse extends AbstractDTO<CreateBookingResponse> {
public Booking booking;
public int bookingid;
}

0 comments on commit 6837d69

Please sign in to comment.