-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathConfigTest.java
More file actions
30 lines (24 loc) · 799 Bytes
/
ConfigTest.java
File metadata and controls
30 lines (24 loc) · 799 Bytes
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
/* Copyright (c) restSQL Project Contributors. Licensed under MIT. */
package org.restsql.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class ConfigTest {
@Test
public void testDumpConfig() {
String dump = Config.dumpConfig(true);
assertNotNull(dump);
//System.out.println(dump);
}
@Test
public void testDumpLoggingConfig() {
String dump = Config.dumpLoggingConfig();
assertNotNull(dump);
//System.out.println(dump);
}
@Test
public void testException() {
SqlResourceException e = new SqlResourceException(new SqlResourceException("blah"), "select * from temp");
assertEquals("org.restsql.core.SqlResourceException: blah :: select * from temp", e.toString());
}
}