-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ :: Api-v0.1.4-2
- Loading branch information
Showing
28 changed files
with
167 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndler/EventContentChangeEventHandler.java โ ...event/EventContentChangeEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nt/handler/EventCreationEventHandler.java โ ...dler/event/EventCreationEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nt/handler/EventDeletionEventHandler.java โ ...dler/event/EventDeletionEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...andler/EventStatusChangeEventHandler.java โ .../event/EventStatusChangeEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...andler/HostRegisterSlackEventHandler.java โ ...r/host/HostRegisterSlackEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...handler/HostUserDisabledEventHandler.java โ ...er/host/HostUserDisabledEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndler/HostUserInvitationEventHandler.java โ .../host/HostUserInvitationEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ost/handler/HostUserJoinEventHandler.java โ ...andler/host/HostUserJoinEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndler/HostUserRoleChangeEventHandler.java โ .../host/HostUserRoleChangeEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...in/src/main/java/band/gosrock/domain/domains/host/exception/InvalidSlackUrlException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package band.gosrock.domain.domains.host.exception; | ||
|
||
|
||
import band.gosrock.common.exception.DuDoongCodeException; | ||
|
||
public class InvalidSlackUrlException extends DuDoongCodeException { | ||
public static final DuDoongCodeException EXCEPTION = new InvalidSlackUrlException(); | ||
|
||
private InvalidSlackUrlException() { | ||
super(HostErrorCode.INVALID_SLACK_URL); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
.../band/gosrock/domain/domains/issuedTicket/domain/validator/IssuedTicketValidatorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package band.gosrock.domain.domains.issuedTicket.domain.validator; | ||
|
||
import static org.mockito.BDDMockito.given; | ||
|
||
import band.gosrock.domain.domains.event.adaptor.EventAdaptor; | ||
import band.gosrock.domain.domains.host.adaptor.HostAdaptor; | ||
import band.gosrock.domain.domains.issuedTicket.domain.IssuedTicket; | ||
import band.gosrock.domain.domains.issuedTicket.exception.IssuedTicketNotMatchedEventException; | ||
import band.gosrock.domain.domains.issuedTicket.validator.IssuedTicketValidator; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
import org.mockito.Mock; | ||
import org.mockito.junit.jupiter.MockitoExtension; | ||
|
||
@ExtendWith(MockitoExtension.class) | ||
public class IssuedTicketValidatorTest { | ||
|
||
@Mock IssuedTicket issuedTicket; | ||
|
||
@Mock EventAdaptor eventAdaptor; | ||
|
||
@Mock HostAdaptor hostAdaptor; | ||
|
||
IssuedTicketValidator issuedTicketValidator; | ||
|
||
@BeforeEach | ||
public void setUp() { | ||
issuedTicketValidator = new IssuedTicketValidator(eventAdaptor, hostAdaptor); | ||
} | ||
|
||
@Test | ||
public void ๋ฐ๊ธํฐ์ผ_์ด๋ฒคํธ_๊ฒ์ฆ_์ฑ๊ณต() { | ||
// given | ||
given(issuedTicket.getEventId()).willReturn(1L); | ||
// when | ||
issuedTicketValidator.validIssuedTicketEventIdEqualEvent(issuedTicket, 1L); | ||
} | ||
|
||
@Test | ||
public void ๋ฐ๊ธํฐ์ผ_์ด๋ฒคํธ_๊ฒ์ฆ_์คํจ() { | ||
// given | ||
given(issuedTicket.getEventId()).willReturn(2L); | ||
// when | ||
// then | ||
Assertions.assertThrows( | ||
IssuedTicketNotMatchedEventException.class, | ||
() -> issuedTicketValidator.validIssuedTicketEventIdEqualEvent(issuedTicket, 1L)); | ||
} | ||
} |
Oops, something went wrong.