-
-
Notifications
You must be signed in to change notification settings - Fork 177
Expand file tree
/
Copy pathServerTest.java
More file actions
49 lines (39 loc) · 1.64 KB
/
ServerTest.java
File metadata and controls
49 lines (39 loc) · 1.64 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
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2019 Open Identity Platform Community.
* Portions Copyright 2020-2026 3A Systems, LLC.
*/
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import com.sun.identity.idm.IdRepoException;
import org.openidentityplatform.openam.cassandra.embedded.Server;
public class ServerTest {
static Server cassandra;
@BeforeClass
public static void init() throws IdRepoException{
System.setProperty("datastax-java-driver.advanced.auth-provider.class","PlainTextAuthProvider");
System.setProperty("datastax-java-driver.advanced.auth-provider.username","cassandra");
System.setProperty("datastax-java-driver.advanced.auth-provider.password","cassandra");
System.setProperty("datastax-java-driver.basic.request.timeout", "20 seconds");
}
@AfterClass
public static void destory() throws IdRepoException{
}
@Test
public void start_test() throws IdRepoException{
cassandra=new Server();
cassandra.run();
}
}