[Httpunit-commit] SF.net SVN: httpunit: [917] trunk/httpunit/src/com/meterware/servletunit/ Servle
Brought to you by:
russgold
|
From: <wol...@us...> - 2008-04-15 17:37:33
|
Revision: 917
http://httpunit.svn.sourceforge.net/httpunit/?rev=917&view=rev
Author: wolfgang_fahl
Date: 2008-04-15 10:37:31 -0700 (Tue, 15 Apr 2008)
Log Message:
-----------
bug report (actually a feature request)
1942454 Make ServerInfo a constant
by Philip Helger
Modified Paths:
--------------
trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java
Modified: trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java
===================================================================
--- trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-15 16:55:53 UTC (rev 916)
+++ trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-15 17:37:31 UTC (rev 917)
@@ -243,8 +243,9 @@
public String getRealPath( String path ) {
return _application.getResourceFile( path ).getAbsolutePath();
}
+
+ public static final String DEFAULT_SERVER_INFO="ServletUnit test framework";
-
/**
* Returns the name and version of the servlet container on which the servlet is running.
@@ -255,7 +256,7 @@
* Dev Kit/1.0 (JDK 1.1.6; Windows NT 4.0 x86).
**/
public String getServerInfo() {
- return "ServletUnit test framework";
+ return DEFAULT_SERVER_INFO;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|