FileDocCategorySizeDatePackage
LocationInfoTest.javaAPI DocApache log4j 1.2.151745Sat Aug 25 00:09:32 BST 2007org.apache.log4j.spi

LocationInfoTest

public class LocationInfoTest extends TestCase
Tests for LocationInfo.

Fields Summary
Constructors Summary
Methods Summary
public voidtestFourParamConstructor()
Tests four parameter constructor.

        final String className = LocationInfoTest.class.getName();
        final String methodName = "testFourParamConstructor";
        final String fileName = "LocationInfoTest.java";
        final String lineNumber = "41";
        LocationInfo li = new LocationInfo(fileName,
                className, methodName, lineNumber);
        assertEquals(className, li.getClassName());
        assertEquals(methodName, li.getMethodName());
        assertEquals(fileName, li.getFileName());
        assertEquals(lineNumber, li.getLineNumber());
        assertEquals(className + "."  + methodName
                + "(" + fileName + ":" + lineNumber + ")",
                li.fullInfo);