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 @@ -7,7 +7,6 @@
import dev.learning.xapi.client.XapiClient;
import dev.learning.xapi.model.Statement;
import dev.learning.xapi.model.Verb;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URI;
import java.nio.file.Files;
Expand Down Expand Up @@ -63,7 +62,7 @@ public void run(String... args) throws Exception {

}

private UUID postStatement() throws FileNotFoundException, IOException {
private UUID postStatement() throws IOException {

// Load jpg attachment from class-path
var data = Files.readAllBytes(ResourceUtils.getFile("classpath:example.jpg").toPath());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void whenSerializingAboutWithExtensionsThenResultIsEqualToExpectedJson() throws
}

@Test
void whenCallingToStringThenResultIsExpected() throws IOException {
void whenCallingToStringThenResultIsExpected() {

final var extensions = new LinkedHashMap<URI, Object>();
extensions.put(URI.create("http://url"), "www.example.com");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void whenSerializingAccountThenResultIsEqualToExpectedJson() throws IOException
}

@Test
void whenCallingToStringThenResultIsExpected() throws IOException {
void whenCallingToStringThenResultIsExpected() {

final var account = Account.builder()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void whenSerializingActivityThenResultIsEqualToExpectedJson() throws IOException
}

@Test
void whenCallingToStringThenResultIsExpected() throws IOException {
void whenCallingToStringThenResultIsExpected() {

final var activity = Activity.builder()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void whenCallingToStringThenResultIsExpected() throws IOException {
}

@Test
void whenBuildingContextActivitiesWithTwoParentsThenParentIshasSizeTwo() throws IOException {
void whenBuildingContextActivitiesWithTwoParentsThenParentIshasSizeTwo() {

// When Building ContextActivities With Two Parents
final var contextActivities = ContextActivities.builder()
Expand All @@ -151,7 +151,7 @@ void whenBuildingContextActivitiesWithTwoParentsThenParentIshasSizeTwo() throws
}

@Test
void whenBuildingContextActivitiesWithTwoGroupingThenGroupingIshasSizeTwo() throws IOException {
void whenBuildingContextActivitiesWithTwoGroupingThenGroupingIshasSizeTwo() {

// When Building ContextActivities With Two Groupings
final var contextActivities = ContextActivities.builder()
Expand All @@ -168,7 +168,7 @@ void whenBuildingContextActivitiesWithTwoGroupingThenGroupingIshasSizeTwo() thro
}

@Test
void whenBuildingContextActivitiesWithTwoOtherThenOtherIshasSizeTwo() throws IOException {
void whenBuildingContextActivitiesWithTwoOtherThenOtherIshasSizeTwo() {

// When Building ContextActivities With Two Others
final var contextActivities = ContextActivities.builder()
Expand All @@ -185,7 +185,7 @@ void whenBuildingContextActivitiesWithTwoOtherThenOtherIshasSizeTwo() throws IOE
}

@Test
void whenBuildingContextActivitiesWithTwoCategoriesThenCategoryIshasSizeTwo() throws IOException {
void whenBuildingContextActivitiesWithTwoCategoriesThenCategoryIshasSizeTwo() {

// When Building ContextActivities With Two Categories
final var contextActivities = ContextActivities.builder()
Expand Down
10 changes: 5 additions & 5 deletions xapi-model/src/test/java/dev/learning/xapi/model/GroupTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void whenCallingToStringThenResultIsExpected() throws IOException {
}

@Test
void givenGroupWithNameAndMembersWhenCallingIsAnonymousThenResultIsTrue() throws IOException {
void givenGroupWithNameAndMembersWhenCallingIsAnonymousThenResultIsTrue() {

// Given Group With Name And Members
final Group group = Group.builder()
Expand All @@ -131,7 +131,7 @@ void givenGroupWithNameAndMembersWhenCallingIsAnonymousThenResultIsTrue() throws
}

@Test
void givenGroupWithNameAndNoMembersWhenCallingIsAnonymousThenResultIsFalse() throws IOException {
void givenGroupWithNameAndNoMembersWhenCallingIsAnonymousThenResultIsFalse() {

// Given Group With Name And Empty Members
final Group group = Group.builder()
Expand Down Expand Up @@ -172,7 +172,7 @@ void givenGroupWithNameAndNullMembersWhenCallingIsAnonymousThenResultIsFalse()
}

@Test
void givenGroupWithMboxAndMembersWhenCallingIsAnonymousThenResultIsFalse() throws IOException {
void givenGroupWithMboxAndMembersWhenCallingIsAnonymousThenResultIsFalse() {

// Given Group With MBox And Members
final Group group = Group.builder()
Expand Down Expand Up @@ -217,7 +217,7 @@ void givenGroupWithMboxSha1sumAndMembersWhenCallingIsAnonymousThenResultIsFalse(
}

@Test
void givenGroupWithOpenIDAndMembersWhenCallingIsAnonymousThenResultIsFalse() throws IOException {
void givenGroupWithOpenIDAndMembersWhenCallingIsAnonymousThenResultIsFalse() {

// Given Group With OpenID And Members
final Group group = Group.builder()
Expand All @@ -241,7 +241,7 @@ void givenGroupWithOpenIDAndMembersWhenCallingIsAnonymousThenResultIsFalse() thr


@Test
void givenGroupWithAccountAndMembersWhenCallingIsAnonymousThenResultIsFalse() throws IOException {
void givenGroupWithAccountAndMembersWhenCallingIsAnonymousThenResultIsFalse() {

// Given Group With Account And Members
final Group group = Group.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void whenSerializingResultThenResultIsEqualToExpectedJson() throws IOException {
}

@Test
void whenCallingToStringThenResultIsExpected() throws IOException {
void whenCallingToStringThenResultIsExpected() {

final var resultInstance = Result.builder()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void whenSerializingStatementResultThenResultIsEqualToExpectedJson() throws IOEx
}

@Test
void whenCallingToStringThenResultIsExpected() throws IOException {
void whenCallingToStringThenResultIsExpected() {

final var statementResult = StatementResult.builder()

Expand Down
Loading