File tree Expand file tree Collapse file tree 5 files changed +136
-0
lines changed
src/test/java/nl/altindag/jvm/rainbow Expand file tree Collapse file tree 5 files changed +136
-0
lines changed Original file line number Diff line number Diff line change 48
48
<version >${version.scalatest} </version >
49
49
<scope >test</scope >
50
50
</dependency >
51
+ <dependency >
52
+ <groupId >org.apache.groovy</groupId >
53
+ <artifactId >groovy-test</artifactId >
54
+ <version >${version.groovy} </version >
55
+ <scope >test</scope >
56
+ </dependency >
57
+ <dependency >
58
+ <groupId >org.junit.jupiter</groupId >
59
+ <artifactId >junit-jupiter-api</artifactId >
60
+ <version >${version.junit} </version >
61
+ <scope >test</scope >
62
+ </dependency >
63
+ <dependency >
64
+ <groupId >org.junit.jupiter</groupId >
65
+ <artifactId >junit-jupiter-engine</artifactId >
66
+ <version >${version.junit} </version >
67
+ <scope >test</scope >
68
+ </dependency >
51
69
</dependencies >
52
70
53
71
<build >
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Thunderberry.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package nl.altindag.jvm.rainbow
17
+
18
+ import groovy.test.GroovyTestCase
19
+
20
+ import static org.assertj.core.api.Assertions.assertThat
21
+
22
+ class GroovyServiceShould extends GroovyTestCase {
23
+
24
+ void testSayHello () {
25
+ def service = new GroovyService ()
26
+ def message = service. hello()
27
+ assertThat (message). isEqualTo(" hello" )
28
+ }
29
+
30
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Thunderberry.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package nl .altindag .jvm .rainbow ;
17
+
18
+ import org .junit .jupiter .api .Test ;
19
+
20
+ import static org .assertj .core .api .Assertions .assertThat ;
21
+
22
+ class JavaServiceShould {
23
+
24
+ @ Test
25
+ void sayHello () {
26
+ var service = new JavaService ();
27
+ String message = service .hello ();
28
+ assertThat (message ).isEqualTo ("hello" );
29
+ }
30
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Thunderberry.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package nl.altindag.jvm.rainbow
17
+
18
+ import org.assertj.core.api.Assertions.assertThat
19
+ import org.junit.jupiter.api.Test
20
+
21
+ class KotlinServiceShould {
22
+
23
+ @Test
24
+ fun sayHello () {
25
+ val service = KotlinService ()
26
+ val message = service.hello()
27
+ assertThat(message).isEqualTo(" hello" )
28
+ }
29
+
30
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Thunderberry.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package nl .altindag .jvm .rainbow
17
+
18
+ import org .scalatest .funspec .AnyFunSpec
19
+
20
+ class ScalaServiceShould extends AnyFunSpec {
21
+
22
+ describe(" say hello" ) {
23
+ val service = new ScalaService ()
24
+ val message = service.hello()
25
+ assert(message == " hello" )
26
+ }
27
+
28
+ }
You can’t perform that action at this time.
0 commit comments