FileDocCategorySizeDatePackage
ServerXmlTest.javaAPI DocGlassfish v2 API4131Fri May 04 22:34:10 BST 2007com.sun.enterprise.admin.verifier

ServerXmlTest

public class ServerXmlTest extends Object
ServerXmlTest which is the superclass of all TestCases returns Results Object with Result Class Set

Fields Summary
static Logger
_logger
public com.sun.enterprise.util.LocalStringManagerImpl
smh
public boolean
debug
Constructors Summary
public ServerXmlTest()
Creates a new instance of ServerXmlTest

    
           
      
        // set the local strings manager
        try {
            //StringManagerHelper.setLocalStringsManager(Class.forName(getClass().getName()));
            StringManagerHelper.setLocalStringsManager(Class.forName("com.sun.enterprise.admin.verifier.ServerXmlTest"));
            smh = StringManagerHelper.getLocalStringsManager();
        }
        catch (ClassNotFoundException e) {
            // Logging
            _logger.log(Level.FINE, "serverxmlverifier.class_notfound_exception", e);
        }

    
Methods Summary
protected ResultgetInitializedResult()

        if (debug) {
            // Logging
            _logger.log(Level.INFO, 
            "\n********************************************************** \n " +
            smh.getLocalString("which.class.called.string", getClass() + " called \n",
            new Object[] {getClass()}) +
            "\n**********************************************************");
            
        }

        Result result = new Result();
        result.init(getClass());
        if (debug) {
                // Logging
                _logger.log(Level.INFO, 
                smh.getLocalString
                ("test.string" + ".assertion",
                "Assertion from resource file is: [ {0} ]",
                new Object[] {result.getAssertion()}));
        }
        return result;