-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathStatementFormatTests.java
More file actions
73 lines (51 loc) · 1.67 KB
/
StatementFormatTests.java
File metadata and controls
73 lines (51 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* Copyright 2016-2023 Berry Cloud Ltd. All rights reserved.
*/
package dev.learning.xapi.model;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import org.junit.jupiter.api.Test;
class StatementFormatTests {
@Test
void whenCallingToStringOnCanonicalEnumResultIsLowerCase() {
// When Calling ToString On Canonical Enum
String result = StatementFormat.CANONICAL.toString();
// Result Is Lower Case
assertThat(result, is("canonical"));
}
@Test
void whenCallingGetFormatOnCanonicalEnumResultIsLowerCase() {
// When Calling GetFormat On Canonical Enum
String result = StatementFormat.CANONICAL.getFormat();
// Result Is Lower Case
assertThat(result, is("canonical"));
}
@Test
void whenCallingToStringOnExactEnumResultIsLowerCase() {
// When Calling ToString On Exact Enum
String result = StatementFormat.EXACT.toString();
// Result Is Lower Case
assertThat(result, is("exact"));
}
@Test
void whenCallingGetFormatOnExactEnumResultIsLowerCase() {
// When Calling GetFormat On Exact Enum
String result = StatementFormat.EXACT.getFormat();
// Result Is Lower Case
assertThat(result, is("exact"));
}
@Test
void whenCallingToStringOnIdsEnumResultIsLowerCase() {
// When Calling ToString On Ids Enum
String result = StatementFormat.IDS.toString();
// Result Is Lower Case
assertThat(result, is("ids"));
}
@Test
void whenCallingGetFormatOnIdsEnumResultIsLowerCase() {
// When Calling GetFormat On Ids Enum
String result = StatementFormat.IDS.getFormat();
// Result Is Lower Case
assertThat(result, is("ids"));
}
}