You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by tv...@apache.org on 2015/08/13 02:45:19 UTC
svn commit: r1695636 -
/turbine/core/trunk/src/test/org/apache/turbine/ConfigurationTest.java
Author: tv
Date: Thu Aug 13 00:45:19 2015
New Revision: 1695636
URL: http://svn.apache.org/r1695636
Log:
Fix some little glitches.
Modified:
turbine/core/trunk/src/test/org/apache/turbine/ConfigurationTest.java
Modified: turbine/core/trunk/src/test/org/apache/turbine/ConfigurationTest.java
URL: http://svn.apache.org/viewvc/turbine/core/trunk/src/test/org/apache/turbine/ConfigurationTest.java?rev=1695636&r1=1695635&r2=1695636&view=diff
==============================================================================
--- turbine/core/trunk/src/test/org/apache/turbine/ConfigurationTest.java (original)
+++ turbine/core/trunk/src/test/org/apache/turbine/ConfigurationTest.java Thu Aug 13 00:45:19 2015
@@ -113,14 +113,13 @@ public class ConfigurationTest extends B
}
}
- @SuppressWarnings("boxing")
@Test
public void testCreateTurbineWithIncludedConfiguration() throws Exception
{
String confPath = Turbine.getRealPath( "/conf/test/usersettings.properties" );
try
{
- Configuration configuration = new PropertiesConfiguration(confPath);;
+ Configuration configuration = new PropertiesConfiguration(confPath);
assertNotNull("No Configuration Object found!", configuration);
assertFalse("Make sure we have values", configuration.isEmpty());
@@ -134,7 +133,8 @@ public class ConfigurationTest extends B
throw e;
}
}
-
+
+ @SuppressWarnings("boxing")
@Test
public void testCreateTurbineWithXMLBuilderConfiguration() throws Exception
{
@@ -175,10 +175,6 @@ public class ConfigurationTest extends B
URL testURL = FileSystem.getDefaultFileSystem().locateFromURL(new File( Turbine.getApplicationRoot()).toURI().toString() , configurationRessourcePath);
assertNotNull( "Should be a valid URL",testURL);
}
- catch (Exception e)
- {
- throw e;
- }
finally
{
tc.dispose();