Skip to content

Commit b1bdeb9

Browse files
author
eugenp
committed
minor formatting work
1 parent c77a992 commit b1bdeb9

4 files changed

Lines changed: 2506 additions & 2643 deletions

File tree

‎httpclient/src/test/java/org/baeldung/httpclient/SandboxTest.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

‎spring-protobuf/src/main/java/com/baeldung/protobuf/Application.java‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)