Kaydet (Commit) 89c0a2b2 authored tarafından Noel Grandin's avatar Noel Grandin

remove usage of DOCPTH and CNCSTR

from the java test code, this was legacy, just finishing the job

Change-Id: I2475efcde561cf10b29ea956972cddc06ec5635e
üst 25e4635d
......@@ -163,8 +163,6 @@ public class TestParameters extends HashMap<String,Object> {
put(PropertyName.OPERATING_SYSTEM, getSOCompatibleOSName());
//For compatibility Reasons
put("CNCSTR", DefaultConnectionString);
put("DOCPTH", DefaultTestDocumentPath);
System.setProperty("DOCPTH", DefaultTestDocumentPath);
}
......
......@@ -133,7 +133,7 @@ public class _XBridgeFactory extends MultiMethodTest {
/**
* First creates connection with StarOffice process, using environment
* property <code>'CNCSTR'</code>. Then cerates bridge with unique name
* property <code>'CONNECTION_STRING'</code>. Then create bridge with unique name
* using protocol specified in environment as <code>'PROTOCOL'</code>
* property. After that bridge is disposed. <p>
* Has <b>OK</b> status if value returned is not null
......
......@@ -129,14 +129,14 @@ public class _XUnoUrlResolver extends MultiMethodTest {
}
/**
* Test calls the method using environment property
* <code>'CNCSTR'</code>. <p>
* <code>'CONNECTION_STRING'</code>. <p>
* Has <b> OK </b> status if the method successfully returns
* object that support interface <code>XMultiServiceFactory</code> and
* no exceptions were thrown. <p>
* @see com.sun.star.lang.XMultiServiceFactory
*/
public void _resolve() {
String connectStr = (String)tParam.get("CNCSTR");
String connectStr = (String)tParam.get("CONNECTION_STRING");
int pIndex = connectStr.indexOf("port=") + 5;
connectStr = connectStr.substring(0, pIndex);
System.out.println("ConnectString: " + connectStr);
......
......@@ -49,11 +49,11 @@ public class Acceptor extends TestCase {
/**
* Retrieves host name where StarOffice is started from test
* parameter <code>'CNCSTR'</code>.
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
public void initialize( TestParameters tParam, PrintWriter log ) {
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
}
......
......@@ -45,11 +45,11 @@ public class Acceptor extends TestCase {
/**
* Retrieves host name where StarOffice is started from test
* parameter <code>'CNCSTR'</code>.
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
public void initialize( TestParameters tParam, PrintWriter log ) {
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
}
......
......@@ -40,11 +40,11 @@ public class BridgeFactory extends TestCase {
/**
* Retrieves host name where StarOffice is started from test
* parameter <code>'CNCSTR'</code>.
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
protected void initialize( TestParameters tParam, PrintWriter log ) {
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
}
......
......@@ -38,11 +38,11 @@ public class BridgeFactory extends TestCase {
/**
* Retrieves host name where StarOffice is started from test
* parameter <code>'CNCSTR'</code>.
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
protected void initialize( TestParameters tParam, PrintWriter log ) {
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
}
......
......@@ -49,11 +49,11 @@ public class Connector extends TestCase {
/**
* Retrieves host name where StarOffice is started from test
* parameter <code>'CNCSTR'</code>.
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
protected void initialize( TestParameters tParam, PrintWriter log ) {
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
}
......
......@@ -51,11 +51,11 @@ public class Connector extends TestCase {
/**
* Retrieves host name where StarOffice is started from test
* parameter <code>'CNCSTR'</code>.
* parameter <code>'CONNECTION_STRING'</code>.
*/
@Override
protected void initialize( TestParameters tParam, PrintWriter log ) {
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
sOfficeHost = cncstr.substring(idx, cncstr.indexOf(",", idx)) ;
}
......
......@@ -190,7 +190,7 @@ public class various extends TestCase {
// creating arguments for XInitialization
// first, creating a connection
// connection string
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
// select the port
......
......@@ -182,7 +182,7 @@ public class various extends TestCase {
// creating arguments for XInitialization
// first, creating a connection
// connection string
String cncstr = (String) tParam.get("CNCSTR") ;
String cncstr = (String) tParam.get("CONNECTION_STRING") ;
int idx = cncstr.indexOf("host=") + 5 ;
// select the port
......
......@@ -38,8 +38,8 @@ public class ScriptInfo extends TestCase {
@Override
public void initialize( TestParameters tParam, PrintWriter log ) {
// Get path to test documents
String rootDocPath = ( String )tParam.get( "DOCPTH" );
System.out.println( "DOCPTH is " + rootDocPath );
String rootDocPath = ( String )tParam.get( "TEST_DOCUMENT_PATH" );
System.out.println( "TEST_DOCUMENT_PATH is " + rootDocPath );
rootDocPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
if ( rootDocPath != null && rootDocPath.length() > 1 ){
// convert all "\\" to "/", necessary for UCB
......
......@@ -35,8 +35,8 @@ public class ScriptStorage extends TestCase {
@Override
public void initialize( TestParameters tParam, PrintWriter log ) {
// Get path to test documents
String rootDocPath = ( String )tParam.get( "DOCPTH" );
System.out.println( "DOCPTH is " + rootDocPath );
String rootDocPath = ( String )tParam.get( "TEST_DOCUMENT_PATH" );
System.out.println( "TEST_DOCUMENT_PATH is " + rootDocPath );
rootDocPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
if ( rootDocPath != null && rootDocPath.length() > 1 ){
// convert all "\\" to "/", necessary for UCB
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment