Skip to content

Commit bce7706

Browse files
committed
Disable this test in native due to reflexive nature of Gson and records.
1 parent 26fe554 commit bce7706

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/test/java/com/objectcomputing/checkins/services/kudos/KudosControllerTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.junit.jupiter.api.Test;
2929
import org.junit.jupiter.params.ParameterizedTest;
3030
import org.junit.jupiter.params.provider.CsvSource;
31+
import org.junit.jupiter.api.condition.DisabledInNativeImage;
3132

3233
import java.time.LocalDate;
3334
import java.util.Collections;
@@ -46,6 +47,9 @@
4647
import static org.junit.jupiter.api.Assertions.assertThrows;
4748
import static org.junit.jupiter.api.Assertions.assertTrue;
4849

50+
// Disabled in nativetest due to a ReflectiveOperationException from Gson
51+
// when attempting to post public Kudos to Slack.
52+
@DisabledInNativeImage
4953
@Property(name = "replace.mailjet.factory", value = StringUtils.TRUE)
5054
class KudosControllerTest extends TestContainersSuite implements KudosFixture, TeamFixture, RoleFixture {
5155
@Inject

0 commit comments

Comments
 (0)