File tree Expand file tree Collapse file tree
httpclient/src/test/java/org/baeldung/httpclient
spring-protobuf/src/main/java/com/baeldung/protobuf Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public final void whenInterestingDigestAuthScenario_then200OK() throws Authentic
108108
109109 // Make a client using those creds
110110 final CloseableHttpClient client = HttpClients .custom ().setDefaultCookieStore (cookieStore ).setDefaultCredentialsProvider (credsProvider ).build ();
111-
111+
112112 // And make a call to the URL we are after
113113 final HttpGet httpget = new HttpGet ("http://httpbin.org/digest-auth/auth/user/passwd" );
114114
@@ -127,6 +127,7 @@ public final void whenInterestingDigestAuthScenario_then200OK() throws Authentic
127127
128128 try {
129129 System .out .println ("----------------------------------------" );
130+ System .out .println (responseGood .getStatusLine ());
130131 assertEquals (200 , responseGood .getStatusLine ().getStatusCode ());
131132 } finally {
132133 responseGood .close ();
Original file line number Diff line number Diff line change @@ -32,17 +32,9 @@ ProtobufHttpMessageConverter protobufHttpMessageConverter() {
3232 public CourseRepository createStubCourses () {
3333 Map <Integer , Course > courses = new HashMap <>();
3434
35- Course course1 = Course .newBuilder ()
36- .setId (1 )
37- .setCourseName ("REST with Spring" )
38- .addAllStudent (createStubStudents ())
39- .build ();
40-
41- Course course2 = Course .newBuilder ()
42- .setId (2 )
43- .setCourseName ("Learn Spring Security" )
44- .addAllStudent (new ArrayList <>())
45- .build ();
35+ Course course1 = Course .newBuilder ().setId (1 ).setCourseName ("REST with Spring" ).addAllStudent (createStubStudents ()).build ();
36+
37+ Course course2 = Course .newBuilder ().setId (2 ).setCourseName ("Learn Spring Security" ).addAllStudent (new ArrayList <>()).build ();
4638
4739 courses .put (course1 .getId (), course1 );
4840 courses .put (course2 .getId (), course2 );
You can’t perform that action at this time.
0 commit comments