File tree Expand file tree Collapse file tree 5 files changed +14
-26
lines changed
java/roomescape/model/reservation Expand file tree Collapse file tree 5 files changed +14
-26
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,19 @@ public void setName(String name) {
3131 this .name = name ;
3232 }
3333
34- public void setDate (String date ) {
35- this .date = date ;
36- }
37-
38- public void setTime (Time time ) {
39- this .time = time ;
40- }
41-
4234 public String getDate () {
4335 return date ;
4436 }
4537
38+ public void setDate (String date ) {
39+ this .date = date ;
40+ }
41+
4642 public Time getTime () {
4743 return time ;
4844 }
45+
46+ public void setTime (Time time ) {
47+ this .time = time ;
48+ }
4949}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ private static class ReservationRowMapper implements RowMapper<Reservation> {
3636 @ Override
3737 public Reservation mapRow (ResultSet rs , int rowNum ) throws SQLException {
3838
39- Long timeId = rs .getLong ("time_id" );
39+ // Long timeId = rs.getLong("time_id");
4040 String timeValue = rs .getString ("time_value" );
4141
4242 Time time = new Time (timeValue );
Original file line number Diff line number Diff line change 1- # h2-console
21spring.h2.console.enabled =true
32spring.h2.console.path =/h2-console
4- # db url
5- # h2 -> database
6- spring.datasource.url =jdbc:h2:mem:database
3+ spring.datasource.url =jdbc:h2:mem:database
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -170,20 +170,21 @@ public class MissionStepTest {
170170 .when ().post ("/times" )
171171 .then ().log ().all ()
172172 .statusCode (201 )
173- .header ("Location" , "/times/10 " );
173+ .header ("Location" , "/times/1 " );
174174
175175 RestAssured .given ().log ().all ()
176176 .when ().get ("/times" )
177177 .then ().log ().all ()
178178 .statusCode (200 )
179- .body ("size()" , is (10 ));
179+ .body ("size()" , is (1 ));
180180
181181 RestAssured .given ().log ().all ()
182- .when ().delete ("/times/10 " )
182+ .when ().delete ("/times/1 " )
183183 .then ().log ().all ()
184184 .statusCode (204 );
185185 }
186186
187+
187188 @ Test
188189 void 구단계 () {
189190 Map <String , String > reservation = new HashMap <>();
You can’t perform that action at this time.
0 commit comments