1 23 24 28 29 package com.sun.enterprise.admin.verifier; 30 31 import com.sun.enterprise.admin.util.LocalStringsManager; 33 import com.sun.enterprise.tools.verifier.*; 34 35 import java.util.logging.Logger ; 37 import java.util.logging.Level ; 38 import com.sun.logging.LogDomains; 39 40 41 42 46 47 public class ServerXmlTest { 48 49 static Logger _logger = LogDomains.getLogger(LogDomains.APPVERIFY_LOGGER); 51 52 public com.sun.enterprise.util.LocalStringManagerImpl smh = StringManagerHelper.getLocalStringsManager(); 53 public boolean debug = false; 54 55 56 public ServerXmlTest() { 57 try { 59 StringManagerHelper.setLocalStringsManager(Class.forName("com.sun.enterprise.admin.verifier.ServerXmlTest")); 61 smh = StringManagerHelper.getLocalStringsManager(); 62 } 63 catch (ClassNotFoundException e) { 64 _logger.log(Level.FINE, "serverxmlverifier.class_notfound_exception", e); 66 } 67 68 } 69 70 protected Result getInitializedResult() { 71 if (debug) { 72 _logger.log(Level.INFO, 74 "\n********************************************************** \n " + 75 smh.getLocalString("which.class.called.string", getClass() + " called \n", 76 new Object [] {getClass()}) + 77 "\n**********************************************************"); 78 79 } 80 81 Result result = new Result(); 82 result.init(getClass()); 83 if (debug) { 84 _logger.log(Level.INFO, 86 smh.getLocalString 87 ("test.string" + ".assertion", 88 "Assertion from resource file is: [ {0} ]", 89 new Object [] {result.getAssertion()})); 90 } 91 return result; 92 } 93 94 } 95 | Popular Tags |