2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package yukihane.inqubuss.config;
7 import yukihane.inqubuss.conifg.Properties;
8 import java.lang.reflect.Field;
9 import org.apache.commons.configuration.ConfigurationException;
10 import org.junit.After;
11 import org.junit.AfterClass;
12 import org.junit.Before;
13 import org.junit.BeforeClass;
14 import org.junit.Test;
15 import static org.junit.Assert.*;
21 public class PropertiesTest {
24 public void test() throws ConfigurationException, IllegalArgumentException, IllegalAccessException {
25 Properties p = Properties.INSTANCE;
27 Field[] fields = p.getClass().getDeclaredFields();
29 f.setAccessible(true);
30 System.out.println(f.get(p));
34 public void test2() throws ConfigurationException, IllegalArgumentException, IllegalAccessException {
35 Properties p = Properties.INSTANCE;
37 p.setDbLocation("d_loc");
39 Field[] fields = p.getClass().getDeclaredFields();
41 f.setAccessible(true);
42 System.out.println(f.get(p));