-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from takashi-ishio/issue31
Fix #31
- Loading branch information
Showing
12 changed files
with
509 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package selogger.weaver; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
public class ClassInfoTest { | ||
|
||
@Test | ||
public void testClassInfo() { | ||
ClassInfo c = new ClassInfo(1, "container", "filename", "classname", LogLevel.Normal, "0101", "#id"); | ||
String s = c.toString(); | ||
ClassInfo c2 = ClassInfo.parse(s); | ||
|
||
Assert.assertEquals(1, c.getClassId()); | ||
Assert.assertEquals("#id", c.getClassLoaderIdentifier()); | ||
Assert.assertEquals("classname", c.getClassName()); | ||
Assert.assertEquals("filename", c.getFilename()); | ||
Assert.assertEquals("container", c.getContainer()); | ||
Assert.assertEquals(LogLevel.Normal, c.getLoglevel()); | ||
Assert.assertEquals("0101", c.getHash()); | ||
|
||
Assert.assertEquals(1, c2.getClassId()); | ||
Assert.assertEquals("#id", c2.getClassLoaderIdentifier()); | ||
Assert.assertEquals("classname", c2.getClassName()); | ||
Assert.assertEquals("filename", c2.getFilename()); | ||
Assert.assertEquals("container", c2.getContainer()); | ||
Assert.assertEquals(LogLevel.Normal, c2.getLoglevel()); | ||
Assert.assertEquals("0101", c2.getHash()); | ||
} | ||
} |
Oops, something went wrong.