Skip to content
Snippets Groups Projects
Commit e1795dec authored by Julien Desprez's avatar Julien Desprez
Browse files

Preparer Loganalysis unit tests

make them presubmit ready by fixing some import, cleaning
temporary files.

Test: build, run presubmit
Bug: 33564231
Change-Id: I777569bc37b5a5a4a687cd1bc89d01133abbba4e
parent bd704119
Branches
No related tags found
No related merge requests found
Showing
with 80 additions and 97 deletions
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
<classpathentry combineaccessrules="false" kind="src" path="/loganalysis"/> <classpathentry combineaccessrules="false" kind="src" path="/loganalysis"/>
<classpathentry exported="true" kind="var" path="TRADEFED_ROOT/out/host/common/obj/JAVA_LIBRARIES/easymock_intermediates/javalib.jar" sourcepath="/TRADEFED_ROOT/external/easymock/src"/> <classpathentry exported="true" kind="var" path="TRADEFED_ROOT/out/host/common/obj/JAVA_LIBRARIES/easymock_intermediates/javalib.jar" sourcepath="/TRADEFED_ROOT/external/easymock/src"/>
<classpathentry kind="var" path="TRADEFED_ROOT/out/host/common/obj/JAVA_LIBRARIES/junit-host_intermediates/javalib.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
/* /*
* Copyright (C) 2013 The Android Open Source Project * Copyright (C) 2013 The Android Open Source Project
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License",
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
...@@ -55,67 +55,63 @@ import com.android.loganalysis.util.config.ArgsOptionParserTest; ...@@ -55,67 +55,63 @@ import com.android.loganalysis.util.config.ArgsOptionParserTest;
import com.android.loganalysis.util.config.OptionSetterTest; import com.android.loganalysis.util.config.OptionSetterTest;
import com.android.loganalysis.util.config.OptionUpdateRuleTest; import com.android.loganalysis.util.config.OptionUpdateRuleTest;
import junit.framework.Test; import org.junit.runner.RunWith;
import junit.framework.TestSuite; import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
/** /**
* A test suite for all Trade Federation unit tests. * A test suite for all Trade Federation unit tests.
* <p/> * <p/>
* All tests listed here should be self-contained, and should not require any external dependencies. * All tests listed here should be self-contained, and should not require any external dependencies.
*/ */
public class UnitTests extends TestSuite { @RunWith(Suite.class)
@SuiteClasses({
public UnitTests() {
super();
// item // item
addTestSuite(BatteryDischargeItemTest.class); BatteryDischargeItemTest.class,
addTestSuite(DvmLockSampleItemTest.class); DvmLockSampleItemTest.class,
addTestSuite(GenericItemTest.class); GenericItemTest.class,
addTestSuite(InterruptItemTest.class); InterruptItemTest.class,
addTestSuite(MemInfoItemTest.class); MemInfoItemTest.class,
addTestSuite(MonkeyLogItemTest.class); MonkeyLogItemTest.class,
addTestSuite(ProcrankItemTest.class); ProcrankItemTest.class,
addTestSuite(SmartMonkeyLogItemTest.class); SmartMonkeyLogItemTest.class,
addTestSuite(SystemPropsItemTest.class); SystemPropsItemTest.class,
addTestSuite(TopItemTest.class); TopItemTest.class,
addTestSuite(WakelockItemTest.class); WakelockItemTest.class,
// parser // parser
addTestSuite(AbstractSectionParserTest.class); AbstractSectionParserTest.class,
addTestSuite(AnrParserTest.class); AnrParserTest.class,
addTestSuite(BugreportParserTest.class); BugreportParserTest.class,
addTestSuite(CompactMemInfoParserTest.class); CompactMemInfoParserTest.class,
addTestSuite(DmesgParserTest.class); DmesgParserTest.class,
addTestSuite(EventsLogParserTest.class); EventsLogParserTest.class,
addTestSuite(DvmLockSampleParserTest.class); DvmLockSampleParserTest.class,
addTestSuite(InterruptParserTest.class); InterruptParserTest.class,
addTestSuite(JavaCrashParserTest.class); JavaCrashParserTest.class,
addTestSuite(KernelLogParserTest.class); KernelLogParserTest.class,
addTestSuite(LogcatParserTest.class); LogcatParserTest.class,
addTestSuite(MemInfoParserTest.class); MemInfoParserTest.class,
addTestSuite(MonkeyLogParserTest.class); MonkeyLogParserTest.class,
addTestSuite(NativeCrashParserTest.class); NativeCrashParserTest.class,
addTestSuite(ProcessUsageParserTest.class); ProcessUsageParserTest.class,
addTestSuite(ProcrankParserTest.class); ProcrankParserTest.class,
addTestSuite(SystemPropsParserTest.class); SystemPropsParserTest.class,
addTestSuite(TopParserTest.class); TopParserTest.class,
addTestSuite(TracesParserTest.class); TracesParserTest.class,
addTestSuite(WakelockParserTest.class); WakelockParserTest.class,
// util // util
addTestSuite(ArrayUtilTest.class); ArrayUtilTest.class,
addTestSuite(LogPatternUtilTest.class); LogPatternUtilTest.class,
addTestSuite(LogTailUtilTest.class); LogTailUtilTest.class,
addTestSuite(RegexTrieTest.class); RegexTrieTest.class,
// util.config // util.config
addTestSuite(ArgsOptionParserTest.class); ArgsOptionParserTest.class,
addTestSuite(OptionSetterTest.class); OptionSetterTest.class,
addTestSuite(OptionUpdateRuleTest.class); OptionUpdateRuleTest.class,
} })
public class UnitTests {
public static Test suite() { // empty of purpose
return new UnitTests();
}
} }
\ No newline at end of file
...@@ -17,9 +17,6 @@ package com.android.loganalysis.item; ...@@ -17,9 +17,6 @@ package com.android.loganalysis.item;
import junit.framework.TestCase; import junit.framework.TestCase;
import com.android.loganalysis.item.DvmLockSampleItem;
import com.android.loganalysis.parser.DvmLockSampleParser;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
...@@ -53,7 +50,7 @@ public class DvmLockSampleItemTest extends TestCase { ...@@ -53,7 +50,7 @@ public class DvmLockSampleItemTest extends TestCase {
assertEquals(75, output.get(DvmLockSampleItem.WAIT_TIME)); assertEquals(75, output.get(DvmLockSampleItem.WAIT_TIME));
assertEquals("AccessibilityCache.java", output.get(DvmLockSampleItem.WAITING_SOURCE_FILE)); assertEquals("AccessibilityCache.java", output.get(DvmLockSampleItem.WAITING_SOURCE_FILE));
assertEquals(256, output.get(DvmLockSampleItem.WAITING_SOURCE_LINE)); assertEquals(256, output.get(DvmLockSampleItem.WAITING_SOURCE_LINE));
assertEquals("AccessibilityCache.java", output.get(DvmLockSampleItem.OWNER_FILE_NAME)); assertEquals("-", output.get(DvmLockSampleItem.OWNER_FILE_NAME));
assertEquals(96, output.get(DvmLockSampleItem.OWNER_ACQUIRE_SOURCE_LINE)); assertEquals(96, output.get(DvmLockSampleItem.OWNER_ACQUIRE_SOURCE_LINE));
assertEquals(15, output.get(DvmLockSampleItem.SAMPLE_PERCENTAGE)); assertEquals(15, output.get(DvmLockSampleItem.SAMPLE_PERCENTAGE));
} }
......
...@@ -61,7 +61,7 @@ public class LocationDumpsItemTest extends TestCase { ...@@ -61,7 +61,7 @@ public class LocationDumpsItemTest extends TestCase {
} }
/** /**
* Test that {@link LocationDumpsItem#getLocationDumps()} returns correctly. * Test that {@link LocationDumpsItem#getLocationClients()} returns correctly.
*/ */
public void testGetLocationDumps() { public void testGetLocationDumps() {
LocationDumpsItem item = new LocationDumpsItem(); LocationDumpsItem item = new LocationDumpsItem();
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
package com.android.loganalysis.parser; package com.android.loganalysis.parser;
import com.android.loganalysis.item.ActivityServiceItem; import com.android.loganalysis.item.ActivityServiceItem;
import com.android.loganalysis.item.DumpsysItem;
import junit.framework.TestCase; import junit.framework.TestCase;
......
...@@ -20,8 +20,6 @@ import com.android.loganalysis.item.BatteryDischargeStatsInfoItem; ...@@ -20,8 +20,6 @@ import com.android.loganalysis.item.BatteryDischargeStatsInfoItem;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.json.JSONException;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
...@@ -145,7 +143,7 @@ public class BatteryDischargeStatsInfoParserTest extends TestCase { ...@@ -145,7 +143,7 @@ public class BatteryDischargeStatsInfoParserTest extends TestCase {
/** /**
* Test that input with only a few discharge stats. * Test that input with only a few discharge stats.
*/ */
public void testBatteryDischargeStatsWithTop5Percentages() throws JSONException { public void testBatteryDischargeStatsWithTop5Percentages() {
List<String> input = Arrays.asList( List<String> input = Arrays.asList(
" #95: +3m9s77ms to 95 (screen-on, power-save-off, device-idle-off)", " #95: +3m9s77ms to 95 (screen-on, power-save-off, device-idle-off)",
" #96: +7m0s308ms to 96 (screen-on, power-save-off, device-idle-off)", " #96: +7m0s308ms to 96 (screen-on, power-save-off, device-idle-off)",
......
...@@ -19,10 +19,6 @@ import com.android.loganalysis.item.CpuInfoItem; ...@@ -19,10 +19,6 @@ import com.android.loganalysis.item.CpuInfoItem;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
......
...@@ -19,6 +19,8 @@ package com.android.loganalysis.parser; ...@@ -19,6 +19,8 @@ package com.android.loganalysis.parser;
import com.android.loganalysis.item.LatencyItem; import com.android.loganalysis.item.LatencyItem;
import com.android.loganalysis.item.TransitionDelayItem; import com.android.loganalysis.item.TransitionDelayItem;
import junit.framework.TestCase;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.BufferedWriter; import java.io.BufferedWriter;
import java.io.File; import java.io.File;
...@@ -29,8 +31,6 @@ import java.io.InputStreamReader; ...@@ -29,8 +31,6 @@ import java.io.InputStreamReader;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import junit.framework.TestCase;
/** /**
* Unit tests for {@link EventsLogParser}. * Unit tests for {@link EventsLogParser}.
*/ */
...@@ -38,6 +38,11 @@ public class EventsLogParserTest extends TestCase { ...@@ -38,6 +38,11 @@ public class EventsLogParserTest extends TestCase {
private File mTempFile = null; private File mTempFile = null;
@Override
protected void tearDown() throws Exception {
mTempFile.delete();
}
/** /**
* Test for empty events logs passed to the transition delay parser * Test for empty events logs passed to the transition delay parser
*/ */
......
...@@ -19,10 +19,6 @@ import com.android.loganalysis.item.GfxInfoItem; ...@@ -19,10 +19,6 @@ import com.android.loganalysis.item.GfxInfoItem;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
......
...@@ -106,7 +106,7 @@ public class LogcatParserTest extends TestCase { ...@@ -106,7 +106,7 @@ public class LogcatParserTest extends TestCase {
logcat.getJavaCrashes().get(0).getEventTime()); logcat.getJavaCrashes().get(0).getEventTime());
} }
public void testParse_test_exception() throws ParseException { public void testParse_test_exception() {
List<String> lines = Arrays.asList( List<String> lines = Arrays.asList(
"11-25 19:26:53.581 5832 7008 I TestRunner: ----- begin exception -----", "11-25 19:26:53.581 5832 7008 I TestRunner: ----- begin exception -----",
"11-25 19:26:53.589 5832 7008 I TestRunner: ", "11-25 19:26:53.589 5832 7008 I TestRunner: ",
...@@ -145,7 +145,7 @@ public class LogcatParserTest extends TestCase { ...@@ -145,7 +145,7 @@ public class LogcatParserTest extends TestCase {
assertEquals(LogcatParser.JAVA_CRASH, logcat.getJavaCrashes().get(0).getCategory()); assertEquals(LogcatParser.JAVA_CRASH, logcat.getJavaCrashes().get(0).getCategory());
} }
public void testParse_test_exception_with_exras() throws ParseException { public void testParse_test_exception_with_exras() {
List<String> lines = Arrays.asList( List<String> lines = Arrays.asList(
"12-06 17:19:18.746 6598 7960 I TestRunner: failed: testYouTube(com.android.test.uiautomator.aupt.YouTubeTest)", "12-06 17:19:18.746 6598 7960 I TestRunner: failed: testYouTube(com.android.test.uiautomator.aupt.YouTubeTest)",
"12-06 17:19:18.746 6598 7960 I TestRunner: ----- begin exception -----", "12-06 17:19:18.746 6598 7960 I TestRunner: ----- begin exception -----",
......
...@@ -19,10 +19,6 @@ import com.android.loganalysis.item.QtaguidItem; ...@@ -19,10 +19,6 @@ import com.android.loganalysis.item.QtaguidItem;
import junit.framework.TestCase; import junit.framework.TestCase;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
......
...@@ -26,7 +26,7 @@ import java.util.List; ...@@ -26,7 +26,7 @@ import java.util.List;
public class ArrayUtilTest extends TestCase { public class ArrayUtilTest extends TestCase {
/** /**
* Simple test for {@link ArrayUtil#buildArray(String[]...)} * Simple test for {@link ArrayUtil#buildArray(String[][])}
*/ */
public void testBuildArray_arrays() { public void testBuildArray_arrays() {
String[] newArray = ArrayUtil.buildArray(new String[] {"1", "2"}, new String[] {"3"}, String[] newArray = ArrayUtil.buildArray(new String[] {"1", "2"}, new String[] {"3"},
......
...@@ -301,7 +301,7 @@ public class OptionSetterTest extends TestCase { ...@@ -301,7 +301,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test that multiple options with same name must have the same type. * Test that multiple options with same name must have the same type.
*/ */
public void testOptionSetter_sharedOptionsDiffType() throws ConfigurationException { public void testOptionSetter_sharedOptionsDiffType() {
try { try {
new OptionSetter(new AllTypesOptionSource(), new SharedOptionWrongTypeSource()); new OptionSetter(new AllTypesOptionSource(), new SharedOptionWrongTypeSource());
fail("ConfigurationException not thrown"); fail("ConfigurationException not thrown");
...@@ -375,7 +375,7 @@ public class OptionSetterTest extends TestCase { ...@@ -375,7 +375,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test that options with {@link OptionSetter#NAMESPACE_SEPARATOR} are rejected * Test that options with {@link OptionSetter#NAMESPACE_SEPARATOR} are rejected
*/ */
public void testOptionSetter_badOptionName() throws ConfigurationException { public void testOptionSetter_badOptionName() {
try { try {
new OptionSetter(new BadOptionNameSource()); new OptionSetter(new BadOptionNameSource());
fail("ConfigurationException not thrown"); fail("ConfigurationException not thrown");
...@@ -474,7 +474,7 @@ public class OptionSetterTest extends TestCase { ...@@ -474,7 +474,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a Collection. * Test {@link OptionSetter#setOptionValue(String, String)} for a Collection.
*/ */
public void testSetOptionValue_collection() throws ConfigurationException, IOException { public void testSetOptionValue_collection() throws ConfigurationException {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
final String expectedValue = "stringvalue"; final String expectedValue = "stringvalue";
assertSetOptionValue(optionSource, "string_collection", expectedValue); assertSetOptionValue(optionSource, "string_collection", expectedValue);
...@@ -485,7 +485,7 @@ public class OptionSetterTest extends TestCase { ...@@ -485,7 +485,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a Map. * Test {@link OptionSetter#setOptionValue(String, String)} for a Map.
*/ */
public void testSetOptionValue_map() throws ConfigurationException, IOException { public void testSetOptionValue_map() throws ConfigurationException {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
final String expectedKey = "stringkey"; final String expectedKey = "stringkey";
final String expectedValue = "stringvalue"; final String expectedValue = "stringvalue";
...@@ -512,7 +512,7 @@ public class OptionSetterTest extends TestCase { ...@@ -512,7 +512,7 @@ public class OptionSetterTest extends TestCase {
* Test {@link OptionSetter#setOptionValue(String, String)} for a boolean for a non-boolean * Test {@link OptionSetter#setOptionValue(String, String)} for a boolean for a non-boolean
* value. * value.
*/ */
public void testSetOptionValue_booleanInvalid() throws ConfigurationException { public void testSetOptionValue_booleanInvalid() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
assertSetOptionValueInvalid(optionSource, "boolean", "blah"); assertSetOptionValueInvalid(optionSource, "boolean", "blah");
} }
...@@ -538,7 +538,7 @@ public class OptionSetterTest extends TestCase { ...@@ -538,7 +538,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a byte for an invalid value. * Test {@link OptionSetter#setOptionValue(String, String)} for a byte for an invalid value.
*/ */
public void testSetOptionValue_byteInvalid() throws ConfigurationException { public void testSetOptionValue_byteInvalid() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
assertSetOptionValueInvalid(optionSource, "byte", "blah"); assertSetOptionValueInvalid(optionSource, "byte", "blah");
} }
...@@ -573,7 +573,7 @@ public class OptionSetterTest extends TestCase { ...@@ -573,7 +573,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a short for an invalid value. * Test {@link OptionSetter#setOptionValue(String, String)} for a short for an invalid value.
*/ */
public void testSetOptionValue_shortInvalid() throws ConfigurationException { public void testSetOptionValue_shortInvalid() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
assertSetOptionValueInvalid(optionSource, "short", "blah"); assertSetOptionValueInvalid(optionSource, "short", "blah");
} }
...@@ -599,7 +599,7 @@ public class OptionSetterTest extends TestCase { ...@@ -599,7 +599,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a int for an invalid value. * Test {@link OptionSetter#setOptionValue(String, String)} for a int for an invalid value.
*/ */
public void testSetOptionValue_intInvalid() throws ConfigurationException { public void testSetOptionValue_intInvalid() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
assertSetOptionValueInvalid(optionSource, "int", "blah"); assertSetOptionValueInvalid(optionSource, "int", "blah");
} }
...@@ -625,7 +625,7 @@ public class OptionSetterTest extends TestCase { ...@@ -625,7 +625,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a long for an invalid value. * Test {@link OptionSetter#setOptionValue(String, String)} for a long for an invalid value.
*/ */
public void testSetOptionValue_longInvalid() throws ConfigurationException { public void testSetOptionValue_longInvalid() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
assertSetOptionValueInvalid(optionSource, "long", "blah"); assertSetOptionValueInvalid(optionSource, "long", "blah");
} }
...@@ -651,7 +651,7 @@ public class OptionSetterTest extends TestCase { ...@@ -651,7 +651,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a float for an invalid value. * Test {@link OptionSetter#setOptionValue(String, String)} for a float for an invalid value.
*/ */
public void testSetOptionValue_floatInvalid() throws ConfigurationException { public void testSetOptionValue_floatInvalid() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
assertSetOptionValueInvalid(optionSource, "float", "blah"); assertSetOptionValueInvalid(optionSource, "float", "blah");
} }
...@@ -677,7 +677,7 @@ public class OptionSetterTest extends TestCase { ...@@ -677,7 +677,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for a double for an invalid value. * Test {@link OptionSetter#setOptionValue(String, String)} for a double for an invalid value.
*/ */
public void testSetOptionValue_doubleInvalid() throws ConfigurationException { public void testSetOptionValue_doubleInvalid() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
assertSetOptionValueInvalid(optionSource, "double", "blah"); assertSetOptionValueInvalid(optionSource, "double", "blah");
} }
...@@ -768,7 +768,7 @@ public class OptionSetterTest extends TestCase { ...@@ -768,7 +768,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter#setOptionValue(String, String)} for an Enum. * Test {@link OptionSetter#setOptionValue(String, String)} for an Enum.
*/ */
public void testSetOptionValue_enumBadValue() throws ConfigurationException { public void testSetOptionValue_enumBadValue() {
AllTypesOptionSource optionSource = new AllTypesOptionSource(); AllTypesOptionSource optionSource = new AllTypesOptionSource();
try { try {
assertSetOptionValue(optionSource, "enum", "noexist"); assertSetOptionValue(optionSource, "enum", "noexist");
...@@ -793,7 +793,7 @@ public class OptionSetterTest extends TestCase { ...@@ -793,7 +793,7 @@ public class OptionSetterTest extends TestCase {
/** /**
* Test {@link OptionSetter} for a final field * Test {@link OptionSetter} for a final field
*/ */
public void testOptionSetter_finalField() throws ConfigurationException { public void testOptionSetter_finalField() {
FinalOption optionSource = new FinalOption(); FinalOption optionSource = new FinalOption();
try { try {
new OptionSetter(optionSource); new OptionSetter(optionSource);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment