mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
OptionsDialog now uses form layout.
Display tab now has some options in it: NotScannedValue and NotAvailableValue can now be configured. git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@124 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
parent
68e76fb92d
commit
9afd1a6782
@ -3,9 +3,9 @@
|
||||
*/
|
||||
package net.azib.ipscan.core.values;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import net.azib.ipscan.config.Labels;
|
||||
import net.azib.ipscan.core.values.NotAvailableValue;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import net.azib.ipscan.config.Config;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
@ -23,7 +23,8 @@ public class NotAvailableValueTest {
|
||||
|
||||
@Test
|
||||
public void testToString() throws Exception {
|
||||
assertEquals(Labels.getLabel("fetcher.value.notAvailable"), NotAvailableValue.INSTANCE.toString());
|
||||
Config.initialize();
|
||||
assertEquals(Config.getGlobal().notAvailableText, NotAvailableValue.INSTANCE.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@ -3,9 +3,9 @@
|
||||
*/
|
||||
package net.azib.ipscan.core.values;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import net.azib.ipscan.config.Labels;
|
||||
import net.azib.ipscan.core.values.NotScannedValue;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import net.azib.ipscan.config.Config;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
@ -23,7 +23,8 @@ public class NotScannedValueTest {
|
||||
|
||||
@Test
|
||||
public void testToString() throws Exception {
|
||||
assertEquals(Labels.getLabel("fetcher.value.notScanned"), NotScannedValue.INSTANCE.toString());
|
||||
Config.initialize();
|
||||
assertEquals(Config.getGlobal().notScannedText, NotScannedValue.INSTANCE.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Loading…
Reference in New Issue
Block a user