Skip to content

Commit

Permalink
test: 실패하는 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
swonny committed Apr 17, 2024
1 parent c4bc7ef commit 6a0a63f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ddang.ddang.websocket.handler.dto;

import com.ddang.ddang.websocket.handler.exception.UnsupportedChattingTypeException;
import org.junit.jupiter.api.Test;

import java.util.Map;
Expand Down Expand Up @@ -29,6 +30,7 @@ class ChatMessageTypeTest {
final Map<String, String> data = Map.of("type", "wrong type");

// when & then
assertThatThrownBy(() -> ChatMessageType.findMessageType(data.get("type"))).isInstanceOf(IllegalArgumentException.class);
assertThatThrownBy(() -> ChatMessageType.findMessageType(data.get("type")))
.isInstanceOf(UnsupportedChattingTypeException.class);
}
}

0 comments on commit 6a0a63f

Please sign in to comment.