Skip to content

Commit

Permalink
fix package name in day 24
Browse files Browse the repository at this point in the history
  • Loading branch information
ythirion committed Dec 26, 2023
1 parent 6bc62ee commit 2b4f653
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package M;
package submarine;

public record Instruction(String text, int x) {
public static Instruction fromText(String text) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package M;
package submarine;

public record Position(int horizontal, int depth) {
public Position changeDepth(int newDepth) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package M;
package submarine;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package M;
package submarine;

import java.io.IOException;
import java.net.URISyntaxException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package M;
package submarine;

import org.junit.jupiter.api.Test;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
package org.craftedsw.tripservicekata.exception;

public class CollaboratorCallException extends RuntimeException {
private static final long serialVersionUID = -4584041339906109902L;

private static final long serialVersionUID = -4584041339906109902L;
public CollaboratorCallException() {
super();
}

public CollaboratorCallException() {
super();
}
public CollaboratorCallException(String message,
Throwable cause) {
super(message, cause);
}

public CollaboratorCallException(String message,
Throwable cause) {
super(message, cause);
}
public CollaboratorCallException(String message) {
super(message);
}

public CollaboratorCallException(String message) {
super(message);
}

public CollaboratorCallException(Throwable cause) {
super(cause);
}


public CollaboratorCallException(Throwable cause) {
super(cause);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.craftedsw.tripservicekata.exception;

public class UserNotLoggedInException extends RuntimeException {
private static final long serialVersionUID = 8959479918185637340L;

private static final long serialVersionUID = 8959479918185637340L;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private Try<Seq<Trip>> checkUser(User loggedUser,
: failure(new UserNotLoggedInException());
}

protected Seq<Trip> findTripsByUser(User user) {
private Seq<Trip> findTripsByUser(User user) {
return repository.findTripsByUser(user);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
import org.craftedsw.tripservicekata.exception.CollaboratorCallException;

public class UserSession {
private static final UserSession userSession = new UserSession();

private static final UserSession userSession = new UserSession();

private UserSession() {
}

public static UserSession getInstance() {
return userSession;
}
private UserSession() {
}

public User getLoggedUser() {
throw new CollaboratorCallException(
"UserSession.getLoggedUser() should not be called in an unit test");
}
public static UserSession getInstance() {
return userSession;
}

}
public User getLoggedUser() {
throw new CollaboratorCallException(
"UserSession.getLoggedUser() should not be called in an unit test");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import static org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores;

@DisplayNameGeneration(ReplaceUnderscores.class)
public class TripRepositoryShould {
class TripRepositoryShould {
private final TripRepository tripRepository = new TripRepository();

@Test
Expand Down

0 comments on commit 2b4f653

Please sign in to comment.