Skip to content

Commit d43fdb6

Browse files
authored
Merge pull request #2 from code-squad/versionUp
패키지 버전 업데이트
2 parents c899be4 + bd4886d commit d43fdb6

16 files changed

+103
-65
lines changed

.idea/aws.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
33

4-
version = '1.0.0'
5-
sourceCompatibility = 1.8
4+
sourceCompatibility = 11
65

76
repositories {
87
mavenCentral()
98
}
109

1110
dependencies {
12-
compile('com.sparkjava:spark-core:2.6.0')
13-
compile('com.sparkjava:spark-template-handlebars:2.5.5')
14-
compile('com.google.guava:guava:23.0')
15-
compile('ch.qos.logback:logback-classic:1.2.3')
16-
testCompile('junit:junit:4.12')
17-
testCompile('org.assertj:assertj-core:3.9.0')
18-
}
11+
implementation('com.sparkjava:spark-core:2.6.0')
12+
implementation('com.sparkjava:spark-template-handlebars:2.5.5')
13+
implementation('com.google.guava:guava:23.0')
14+
implementation('ch.qos.logback:logback-classic:1.2.3')
15+
16+
//add junit jupiter
17+
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.9.3'
18+
testImplementation 'org.assertj:assertj-core:3.11.1'
19+
testImplementation 'org.testng:testng:7.1.0'
20+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
21+
}
22+
23+
targetCompatibility = 11
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package next.exception;
22

33
import static org.assertj.core.api.Assertions.assertThat;
4+
import static org.assertj.core.api.Assertions.assertThatThrownBy;
45

5-
import org.junit.Test;
6+
import org.junit.jupiter.api.Test;
67

78
public class PositionTest {
89
@Test
@@ -19,29 +20,35 @@ public void create_77() {
1920
assertThat(p.getY()).isEqualTo(7);
2021
}
2122

22-
@Test (expected = InValidPositionException.class)
23+
@Test
2324
public void 길이가_2가_아닌_경우() {
24-
new Position("a");
25+
assertThatThrownBy(() -> new Position("a"))
26+
.isInstanceOf(InValidPositionException.class);
2527
}
2628

27-
@Test (expected = InValidPositionException.class)
29+
@Test
2830
public void notValid_0보다_작은_X() {
29-
new Position("Z1");
31+
assertThatThrownBy(() -> new Position("Z1"))
32+
.isInstanceOf(InValidPositionException.class);
3033
}
3134

32-
@Test (expected = InValidPositionException.class)
35+
@Test
3336
public void notValid_7보다_큰_X() {
34-
new Position("i1");
37+
assertThatThrownBy(() -> new Position("i1"))
38+
.isInstanceOf(InValidPositionException.class);
3539
}
3640

37-
@Test (expected = InValidPositionException.class)
41+
@Test
3842
public void notValid_0보다_작은_Y() {
3943
new Position("a0");
44+
assertThatThrownBy(() -> new Position("a0"))
45+
.isInstanceOf(InValidPositionException.class);
4046
}
4147

42-
@Test (expected = InValidPositionException.class)
48+
@Test
4349
public void notValid_7보다_큰_Y() {
44-
new Position("a9");
50+
assertThatThrownBy(() -> new Position("a9"))
51+
.isInstanceOf(InValidPositionException.class);
4552
}
4653

4754
}

src/test/java/next/fp/CarTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package next.fp;
22

3+
import org.junit.jupiter.api.Test;
4+
35
import static org.assertj.core.api.Assertions.assertThat;
46

5-
import org.junit.Test;
67

78
public class CarTest {
89
@Test

src/test/java/next/fp/LambdaTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package next.fp;
22

3+
import org.junit.jupiter.api.BeforeEach;
4+
import org.junit.jupiter.api.Test;
5+
36
import static org.assertj.core.api.Assertions.assertThat;
47

58
import java.util.Arrays;
69
import java.util.List;
710

8-
import org.junit.Before;
9-
import org.junit.Test;
10-
1111
public class LambdaTest {
1212
private List<Integer> numbers;
1313

14-
@Before
14+
@BeforeEach
1515
public void setup() {
1616
numbers = Arrays.asList(1, 2, 3, 4, 5, 6);
1717
}

src/test/java/next/fp/StreamStudyTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package next.fp;
22

3+
import org.junit.jupiter.api.BeforeEach;
4+
import org.junit.jupiter.api.Test;
5+
36
import static org.assertj.core.api.Assertions.assertThat;
47

58
import java.util.Arrays;
69
import java.util.List;
710

8-
import org.junit.Before;
9-
import org.junit.Test;
10-
1111
public class StreamStudyTest {
1212
private List<Integer> numbers;
1313

14-
@Before
14+
@BeforeEach
1515
public void setup() {
1616
numbers = Arrays.asList(1, 2, 3, 4, 5, 6);
1717
}

src/test/java/next/optional/ComputerStoreTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
import static org.assertj.core.api.Assertions.assertThat;
44

5-
import org.junit.Test;
6-
75
import next.optional.Computer.Soundcard;
86
import next.optional.Computer.USB;
7+
import org.junit.jupiter.api.Test;
98

109
public class ComputerStoreTest {
1110
@Test
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package next.optional;
22

3-
import static org.assertj.core.api.Assertions.assertThat;
3+
import org.junit.jupiter.api.Test;
4+
5+
import static org.assertj.core.api.Assertions.*;
46

5-
import org.junit.Test;
67

78

89
public class ExpressionTest {
@@ -11,8 +12,9 @@ public void of() {
1112
assertThat(Expression.PLUS == Expression.of("+")).isTrue();
1213
}
1314

14-
@Test (expected = IllegalArgumentException.class)
15+
@Test
1516
public void notValidExpression() {
1617
Expression.of("&");
18+
assertThatThrownBy(() -> Expression.of("&")).isInstanceOf(IllegalArgumentException.class);
1719
}
1820
}

src/test/java/next/optional/UserTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package next.optional;
22

3+
4+
import org.junit.jupiter.api.Test;
5+
36
import static next.optional.User.*;
47
import static org.assertj.core.api.Assertions.assertThat;
58

6-
import org.junit.Test;
7-
89
public class UserTest {
910
@Test
1011
public void whenFiltersWithoutOptional_thenCorrect() {

src/test/java/next/optional/UsersTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package next.optional;
22

3-
import static org.assertj.core.api.Assertions.assertThat;
3+
import org.junit.jupiter.api.Test;
44

5-
import org.junit.Test;
5+
import static org.assertj.core.api.Assertions.assertThat;
66

77
public class UsersTest {
88

0 commit comments

Comments
 (0)