Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
forax committed Sep 12, 2024
1 parent 94362c4 commit b7b4ee4
Showing 1 changed file with 21 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@SuppressWarnings({"unused", "static-method"})
public class JSONWriterTest {
/*

@Nested
public class Q1 {
@Test @Tag("Q1")
Expand Down Expand Up @@ -105,27 +105,6 @@ class Empty { }

} // end of Q2

public static final class Person {
private final String firstName;
private final String lastName;
public Person(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
@JSONProperty("first-name")
public String getFirstName() {
return firstName;
}
@JSONProperty("last-name")
public String getLastName() {
return lastName;
}
}
public static class StartDate {
private final LocalDateTime time;

Expand Down Expand Up @@ -177,6 +156,26 @@ public void configurePreconditions() {

} // end of Q5

public static final class Person {
private final String firstName;
private final String lastName;

public Person(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}

@JSONProperty("first-name")
public String getFirstName() {
return firstName;
}

@JSONProperty("last-name")
public String getLastName() {
return lastName;
}
}

@Nested
public class Q6 {
@Test @Tag("Q6")
Expand Down Expand Up @@ -252,5 +251,4 @@ public void toJSONFullExample() {
}

} // end of Q7
*/
}

0 comments on commit b7b4ee4

Please sign in to comment.