Cleaned code.

This commit is contained in:
Christian P. MOMON 2017-05-08 11:37:31 +02:00
parent 9b8070c998
commit e67ea87ecb
2 changed files with 36 additions and 37 deletions

View file

@ -34,7 +34,7 @@ import org.junit.Test;
*/
public class StringListTest
{
static protected org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(StringListTest.class);
public final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(StringListTest.class);
/**
* Before.
@ -53,7 +53,7 @@ public class StringListTest
public void testCharAt01()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -72,7 +72,7 @@ public class StringListTest
Assert.assertEquals(target, 'l');
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -82,7 +82,7 @@ public class StringListTest
public void testCharAt02()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -105,7 +105,7 @@ public class StringListTest
Assert.assertEquals('l', target);
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -115,7 +115,7 @@ public class StringListTest
public void testCharAtException01()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -126,7 +126,7 @@ public class StringListTest
Assert.assertEquals('a', target);
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -136,7 +136,7 @@ public class StringListTest
public void testCharAtException02()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -147,7 +147,7 @@ public class StringListTest
Assert.assertEquals('a', target);
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -157,7 +157,7 @@ public class StringListTest
public void testCharAtException03()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -168,7 +168,7 @@ public class StringListTest
Assert.assertEquals('a', target);
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -178,7 +178,7 @@ public class StringListTest
public void testConstructor01()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
String[] source = { "a", "b", "c" };
@ -188,7 +188,7 @@ public class StringListTest
Assert.assertEquals(3, target.size());
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -198,7 +198,7 @@ public class StringListTest
public void testConstructor02()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList target = new StringList("a", "b", "c");
@ -206,7 +206,7 @@ public class StringListTest
Assert.assertEquals(3, target.size());
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -216,7 +216,7 @@ public class StringListTest
public void testIteratorOfChar01()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -242,7 +242,7 @@ public class StringListTest
}
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -252,7 +252,7 @@ public class StringListTest
public void testShrink01()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -264,7 +264,7 @@ public class StringListTest
Assert.assertEquals(0, source.size());
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -274,7 +274,7 @@ public class StringListTest
public void testShrink02()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -292,7 +292,7 @@ public class StringListTest
Assert.assertEquals("alphabravocharliedelta", source.get(0));
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -302,7 +302,7 @@ public class StringListTest
public void testSubstring01()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -313,7 +313,7 @@ public class StringListTest
Assert.assertEquals("urge", target.toString());
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -323,7 +323,7 @@ public class StringListTest
public void testSubstring02()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -334,7 +334,7 @@ public class StringListTest
Assert.assertEquals("urge", target.toString());
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -344,7 +344,7 @@ public class StringListTest
public void testSubstring03()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -355,7 +355,7 @@ public class StringListTest
Assert.assertEquals("mile", target.toString());
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -365,7 +365,7 @@ public class StringListTest
public void testSubstring04()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList source = new StringList();
@ -376,7 +376,7 @@ public class StringListTest
Assert.assertEquals("mile", target.toString());
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -386,7 +386,7 @@ public class StringListTest
public void testToString01()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
StringList buffer = new StringList();
@ -396,7 +396,7 @@ public class StringListTest
Assert.assertTrue(target.equals(""));
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -406,7 +406,7 @@ public class StringListTest
public void testToString02()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
String source = "abcdefghijklm";
@ -420,7 +420,7 @@ public class StringListTest
Assert.assertTrue(target.equals(source));
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
/**
@ -430,7 +430,7 @@ public class StringListTest
public void testToString03()
{
//
logger.debug("===== test starting...");
this.logger.debug("===== test starting...");
//
String source1 = "abcdefghijklm";
@ -445,6 +445,6 @@ public class StringListTest
Assert.assertTrue(target.equals(source1 + source2));
//
logger.debug("===== test done.");
this.logger.debug("===== test done.");
}
}

View file

@ -35,8 +35,7 @@ import org.junit.Test;
*/
public class StringsUtilsTest
{
private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(StringsUtilsTest.class);
public final org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(StringsUtilsTest.class);
/**
* Before.