tobby48 5 年前
父节点
当前提交
afd587ff71

+ 7
- 10
pom.xml 查看文件

62
 			<scope>test</scope>
62
 			<scope>test</scope>
63
 		</dependency>
63
 		</dependency>
64
 
64
 
65
-		<dependency>
66
-			<groupId>org.mockito</groupId>
67
-			<artifactId>mockito-all</artifactId>
68
-			<version>1.10.19</version>
69
-			<scope>test</scope>
70
-		</dependency>
71
-
72
-
73
 		<!-- MariaDB / Mysql -->
65
 		<!-- MariaDB / Mysql -->
74
 		<dependency>
66
 		<dependency>
75
 			<groupId>mysql</groupId>
67
 			<groupId>mysql</groupId>
237
 		    <artifactId>sbt-pgp</artifactId>
229
 		    <artifactId>sbt-pgp</artifactId>
238
 		    <version>1.1.0</version>
230
 		    <version>1.1.0</version>
239
 		</dependency> 
231
 		</dependency> 
232
+		-->
240
 		
233
 		
234
+		<!-- https://mvnrepository.com/artifact/net.dv8tion/JDA -->
241
 		<dependency>
235
 		<dependency>
242
 		    <groupId>net.dv8tion</groupId>
236
 		    <groupId>net.dv8tion</groupId>
243
 		    <artifactId>JDA</artifactId>
237
 		    <artifactId>JDA</artifactId>
244
-		    <version>LATEST</version>
238
+		    <version>4.2.0_181</version>
245
 		</dependency>
239
 		</dependency>
246
-		-->
240
+
241
+		
242
+
243
+		
247
 		<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
244
 		<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
248
 		<dependency>
245
 		<dependency>
249
 			<groupId>org.apache.httpcomponents</groupId>
246
 			<groupId>org.apache.httpcomponents</groupId>

+ 1
- 1
src/main/java/kr/co/swh/lecture/opensource/project/discode/SendJDA.java 查看文件

34
 		JDABuilder jb = new JDABuilder(AccountType.BOT);
34
 		JDABuilder jb = new JDABuilder(AccountType.BOT);
35
 		jb.setAutoReconnect(true);
35
 		jb.setAutoReconnect(true);
36
 		jb.setStatus(OnlineStatus.DO_NOT_DISTURB);
36
 		jb.setStatus(OnlineStatus.DO_NOT_DISTURB);
37
-		jb.setToken("NjYzMjgzODYxMTUyNTk1OTkz.XhGR3g.GubjRZ-9njci3CUCoasIFj02mmU");
37
+		jb.setToken("NjYzMjgzODYxMTUyNTk1OTkz.XhGROw.Ps3JJIKlEXoE1eah_5OKHwViThY");
38
 		jb.addEventListeners(new TListener(dicList));
38
 		jb.addEventListeners(new TListener(dicList));
39
 		
39
 		
40
 		try {
40
 		try {

+ 0
- 35
src/test/java/kr/co/swh/lecture/opensource/mockito/MockitoMain.java 查看文件

1
-package kr.co.swh.lecture.opensource.mockito;
2
-
3
-import static org.junit.Assert.assertTrue;
4
-
5
-import org.junit.Test;
6
-import org.mockito.Mock;
7
-import org.mockito.MockitoAnnotations;
8
-
9
-/**
10
- * <pre>
11
- * kr.co.swh.lecture.opensource.mockito 
12
- * MockitoMain.java
13
- *
14
- * 설명 :
15
- * </pre>
16
- * 
17
- * @since : 2018. 6. 24.
18
- * @author : tobby48
19
- * @version : v1.0
20
- */
21
-public class MockitoMain {
22
-
23
-	@Mock Person p;
24
-
25
-	@Test public void example1(){
26
-		MockitoAnnotations.initMocks(this);
27
-		assertTrue(p != null);
28
-	}
29
-
30
-	public static void main(String[] args) {
31
-		// TODO Auto-generated method stub
32
-		MockitoMain m = new MockitoMain();
33
-		m.example1();
34
-	}
35
-}

+ 0
- 24
src/test/java/kr/co/swh/lecture/opensource/mockito/Person.java 查看文件

1
-package kr.co.swh.lecture.opensource.mockito;
2
-
3
-/**
4
- * <pre>
5
- * kr.co.swh.lecture.opensource.mockito 
6
- * Person.java
7
- *
8
- * 설명 :
9
- * </pre>
10
- * 
11
- * @since : 2018. 6. 24.
12
- * @author : tobby48
13
- * @version : v1.0
14
- */
15
-public class Person {
16
-	private String name;
17
-	private int age;
18
-
19
-	public String getName() { return name; }
20
-	public void setName(String name) { this.name = name; }
21
-	public int getAge() { return age; }
22
-	public void setAge(int age) { this.age = age; }
23
-
24
-}