1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.type;
17
18 import static org.junit.jupiter.api.Assertions.assertFalse;
19 import static org.junit.jupiter.api.Assertions.assertTrue;
20
21 import java.util.HashMap;
22
23 import org.apache.ibatis.domain.misc.RichType;
24 import org.junit.jupiter.api.Test;
25
26 class SimpleTypeRegistryTest {
27
28 @Test
29 void shouldTestIfClassIsSimpleTypeAndReturnTrue() {
30 assertTrue(SimpleTypeRegistry.isSimpleType(String.class));
31 }
32
33 @Test
34 void shouldTestIfClassIsSimpleTypeAndReturnFalse() {
35 assertFalse(SimpleTypeRegistry.isSimpleType(RichType.class));
36 }
37
38 @Test
39 void shouldTestIfMapIsSimpleTypeAndReturnFalse() {
40 assertFalse(SimpleTypeRegistry.isSimpleType(HashMap.class));
41 }
42
43 }