Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post activity profile for later deletion
postActivityProfile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post Example agent profile for later deletion
postAgentProfile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post Example state for later deletion
postState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post state for later deletion
postState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Get About
ResponseEntity<About> response = client.getAbout().block();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post activity profile for later retrieval
postActivityProfile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post Example Activity profile for later retrieval
postActivityProfile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post statement for later retrieval of activity
postStatement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post Example profile for later retrieval
postAgentProfile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Get Profiles
ResponseEntity<List<String>> response = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post statement for later retrieval of Agent
postStatement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Get Statements
ResponseEntity<StatementResult> response = client.getStatements(r -> r.limit(1)).block();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post Example state for later retrieval
postState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Get Statements as StatementIterator
var statements = client.getStatementIterator().block();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Get Statements
ResponseEntity<Statement> response = client.getStatement(r -> r.id(postStatement())).block();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Get Statements
ResponseEntity<StatementResult> response = client.getStatements().block();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post Example state for later retrieval
postState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Get Voided Statement
ResponseEntity<Statement> response =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post activity profile
client.postActivityProfile(r -> r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post Profile
client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post State
client.postState(r -> r.activityId("https://example.com/activity/1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Post a statement
ResponseEntity<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

Statement attemptedStatement = Statement.builder()
.agentActor(a -> a.name("A N Other").mbox("mailto:another@example.com"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Put activity profile
client.putActivityProfile(r -> r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Put Profile
client.putAgentProfile(r -> r.agent(a -> a.name("A N Other").mbox("mailto:another@example.com"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void main(String[] args) {
}

@Override
public void run(String... args) throws Exception {
public void run(String... args) {

// Put State
client.putState(r -> r.activityId("https://example.com/activity/1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void whenPostingStatementsWithTimestampAndAttachmentThenNoExceptionIsThrown()

@SuppressWarnings("null")
@Test
void whenGettingStatementWithAttachmentThenResponseIsExpected() throws InterruptedException {
void whenGettingStatementWithAttachmentThenResponseIsExpected() {

// single statement with two attachments
final var body =
Expand Down Expand Up @@ -370,7 +370,7 @@ void whenGettingStatementWithAttachmentThenResponseIsExpected() throws Interrupt

@SuppressWarnings("null")
@Test
void whenGettingStatementsWithAttachmentsThenResponseIsExpected() throws InterruptedException {
void whenGettingStatementsWithAttachmentsThenResponseIsExpected() {

// two statements with overlapping attachments
final var body =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void whenGettingStatementThenPathIsExpected() throws InterruptedException {
}

@Test
void whenGettingStatementThenBodyIsInstanceOfStatement() throws InterruptedException {
void whenGettingStatementThenBodyIsInstanceOfStatement() {

mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")

Expand Down Expand Up @@ -1847,7 +1847,7 @@ void whenGettingActivityThenPathIsExpected() throws InterruptedException {
}

@Test
void whenGettingActivityThenBodyIsInstanceOfActivity() throws InterruptedException {
void whenGettingActivityThenBodyIsInstanceOfActivity() {

mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")

Expand Down Expand Up @@ -1896,7 +1896,7 @@ void whenGettingAgentsThenPathIsExpected() throws InterruptedException {
}

@Test
void whenGettingAgentsThenBodyIsInstanceOfPerson() throws InterruptedException {
void whenGettingAgentsThenBodyIsInstanceOfPerson() {

mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")

Expand Down Expand Up @@ -1951,7 +1951,7 @@ void whenGettingAboutThenPathIsExpected() throws InterruptedException {
}

@Test
void whenGettingAboutThenBodyIsInstanceOfAbout() throws InterruptedException {
void whenGettingAboutThenBodyIsInstanceOfAbout() {

mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void whenActivityIsBuiltWithStringIdThenIdIsExpected() {
}

@Test
void whenDeserializingActivityWithInvalidDisplayThenResultIsExpected() throws Exception {
void whenDeserializingActivityWithInvalidDisplayThenResultIsExpected() {

final var json =
"{\"objectType\":\"Activity\",\"id\":\"https://example.com/activity/simplestatement\",\"definition\":{\"name\":{\"a12345678\":\"Simple Statement\"}}}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class LanguageMapTests {

@ParameterizedTest
@CsvSource({"en-GB, Colour", "en-US, Color", "de, Colour"})
void givenUkAndUSKeyWhenGettingLocaleValueThenValueIsExpected(String locale, String expected)
throws Exception {
void givenUkAndUSKeyWhenGettingLocaleValueThenValueIsExpected(String locale, String expected) {

final var languageMap = new LanguageMap();

Expand All @@ -43,7 +42,7 @@ void givenUkAndUSKeyWhenGettingLocaleValueThenValueIsExpected(String locale, Str
}

@Test
void givenFranceGermanyandUSKeyWhenGettingUKValueThenValueIsEnglish() throws Exception {
void givenFranceGermanyandUSKeyWhenGettingUKValueThenValueIsEnglish() {

final var languageMap = new LanguageMap();

Expand All @@ -61,7 +60,7 @@ void givenFranceGermanyandUSKeyWhenGettingUKValueThenValueIsEnglish() throws Exc
}

@Test
void givenFrenchAndEnglishKeyWhenGettingUSValueThenValueIsEnglish() throws Exception {
void givenFrenchAndEnglishKeyWhenGettingUSValueThenValueIsEnglish() {

final var languageMap = new LanguageMap();

Expand All @@ -78,7 +77,7 @@ void givenFrenchAndEnglishKeyWhenGettingUSValueThenValueIsEnglish() throws Excep
}

@Test
void givenFrenchAndUsKeyWhenGettingCanadaFrenchValueThenValueIsFrench() throws Exception {
void givenFrenchAndUsKeyWhenGettingCanadaFrenchValueThenValueIsFrench() {

final var languageMap = new LanguageMap();

Expand All @@ -95,7 +94,7 @@ void givenFrenchAndUsKeyWhenGettingCanadaFrenchValueThenValueIsFrench() throws E
}

@Test
void givenMapIsEmptyWhenGettingGermanValueThenValueIsNull() throws Exception {
void givenMapIsEmptyWhenGettingGermanValueThenValueIsNull() {

final var languageMap = new LanguageMap();

Expand All @@ -110,7 +109,7 @@ void givenMapIsEmptyWhenGettingGermanValueThenValueIsNull() throws Exception {
}

@Test
void givenUsAndUndKeyWhenGettingGermanValueThenValueIsUnd() throws Exception {
void givenUsAndUndKeyWhenGettingGermanValueThenValueIsUnd() {

final var languageMap = new LanguageMap();

Expand All @@ -127,8 +126,7 @@ void givenUsAndUndKeyWhenGettingGermanValueThenValueIsUnd() throws Exception {
}

@Test
void givenUkAndUsKeyInMapUsedToConstructLanguageMapWhenGettingUKValueThenValueIsUK()
throws Exception {
void givenUkAndUsKeyInMapUsedToConstructLanguageMapWhenGettingUKValueThenValueIsUK() {

final Map<Locale, String> map = new HashMap<>();
map.put(Locale.UK, "Colour");
Expand Down
Loading