package tests;

import org.junit.Test;
import org.junit.Assert;

import utils.ConfigInfo;

/**
 * Tests unitaires pour la configuration... juste épique.
 * @author pf
 *
 */

public class JUnit_Config extends JUnit_Test {

	@Test
	public void test_get() throws Exception
	{
		for(ConfigInfo c: ConfigInfo.values())
			config.getString(c);
		Assert.assertTrue(config.getString(ConfigInfo.TABLE_X).equals("3000"));
	}

	@Test
	public void test_set1() throws Exception
	{
		log.debug("JUnit_ReadIniTest.test_set1()", this);
		config.set(ConfigInfo.TABLE_X, "test");
		Assert.assertTrue(config.getString(ConfigInfo.TABLE_X).equals("test"));
	}
	
	@Test
	public void test_set2() throws Exception
	{
		log.debug("JUnit_ReadIniTest.test_set2()", this);
		config.set(ConfigInfo.TABLE_X, 1000);
		Assert.assertTrue(config.getInt(ConfigInfo.TABLE_X) == 1000);
	}

}

@@ -505,22 +505,16 @@
 _set1()%22
-, this
 );%0A%09%09con
@@ -728,14 +728,8 @@
 2()%22
-, this
 );%0A%09

Debug test config