USRE-87 remove the file and delete test case xml
This commit is contained in:
parent
1dbac439d4
commit
79a2ebf081
|
@ -3,10 +3,10 @@ package com.ossez.usreio.client;
|
|||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
|
||||
import com.ossez.usreio.common.metadata.JDomCompactBuilder;
|
||||
import com.ossez.usreio.common.metadata.JDomStandardBuilder;
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataException;
|
||||
import com.ossez.usreio.tests.common.metadata.JDomCompactBuilder;
|
||||
import com.ossez.usreio.tests.common.metadata.JDomStandardBuilder;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataException;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.DocumentException;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package com.ossez.usreio.client;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaCollector;
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaCollector;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
|
|
@ -2,8 +2,8 @@ package com.ossez.usreio.client;
|
|||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.Metadata;
|
||||
import com.ossez.usreio.common.metadata.MetadataException;
|
||||
import com.ossez.usreio.tests.common.metadata.Metadata;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataException;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ import java.io.FileWriter;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.JDomCompactBuilder;
|
||||
import com.ossez.usreio.common.metadata.JDomStandardBuilder;
|
||||
import com.ossez.usreio.common.metadata.Metadata;
|
||||
import com.ossez.usreio.common.metadata.MetadataBuilder;
|
||||
import com.ossez.usreio.tests.common.metadata.JDomCompactBuilder;
|
||||
import com.ossez.usreio.tests.common.metadata.JDomStandardBuilder;
|
||||
import com.ossez.usreio.tests.common.metadata.Metadata;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataBuilder;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.dom4j.Document;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
@ -15,22 +15,22 @@ import org.apache.commons.logging.Log;
|
|||
import org.apache.commons.logging.LogFactory;
|
||||
import org.dom4j.*;
|
||||
|
||||
import com.ossez.usreio.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.common.metadata.types.MEditMask;
|
||||
import com.ossez.usreio.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MLookupType;
|
||||
import com.ossez.usreio.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.common.metadata.types.MSearchHelp;
|
||||
import com.ossez.usreio.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExpression;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExternalType;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationLookupType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MEditMask;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MLookupType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSearchHelp;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExpression;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExternalType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationLookupType;
|
||||
import org.dom4j.io.SAXReader;
|
||||
import org.xml.sax.InputSource;
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
|
@ -13,24 +13,24 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.ossez.usreio.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.common.metadata.types.MEditMask;
|
||||
import com.ossez.usreio.common.metadata.types.MForeignKey;
|
||||
import com.ossez.usreio.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MLookupType;
|
||||
import com.ossez.usreio.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.common.metadata.types.MSearchHelp;
|
||||
import com.ossez.usreio.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdateHelp;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExpression;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExternalType;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationLookupType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MEditMask;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MForeignKey;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MLookupType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSearchHelp;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdateHelp;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExpression;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExternalType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationLookupType;
|
||||
import org.dom4j.Attribute;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.Element;
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
|
@ -15,14 +15,14 @@ import org.apache.commons.lang3.builder.HashCodeBuilder;
|
|||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrAlphanum;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrBoolean;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrDate;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrNumeric;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrNumericPositive;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrPlaintext;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrText;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrVersion;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrAlphanum;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrBoolean;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrDate;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrNumeric;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrNumericPositive;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrPlaintext;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrText;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrVersion;
|
||||
|
||||
public abstract class MetaObject implements Serializable {
|
||||
private static final Log LOG = LogFactory.getLog(MetaObject.class);
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
public class MetaParseException extends MetadataException {
|
||||
public MetaParseException() {
|
|
@ -1,19 +1,19 @@
|
|||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.ossez.usreio.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.common.metadata.types.MForeignKey;
|
||||
import com.ossez.usreio.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MSearchHelp;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MForeignKey;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSearchHelp;
|
||||
|
||||
public class Metadata implements Serializable {
|
||||
|
|
@ -5,26 +5,26 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import com.ossez.usreio.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.common.metadata.types.MEditMask;
|
||||
import com.ossez.usreio.common.metadata.types.MForeignKey;
|
||||
import com.ossez.usreio.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MLookupType;
|
||||
import com.ossez.usreio.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.common.metadata.types.MSearchHelp;
|
||||
import com.ossez.usreio.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdateHelp;
|
||||
import com.ossez.usreio.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExpression;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationExternalType;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.common.metadata.types.MValidationLookupType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MEditMask;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MForeignKey;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MLookupType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MObject;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSearchHelp;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MTable;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdate;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdateHelp;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MUpdateType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExpression;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExternal;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationExternalType;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationLookup;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MValidationLookupType;
|
||||
|
||||
public abstract class MetadataBuilder {
|
||||
protected MetadataBuilder() {
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
public enum MetadataElement {
|
||||
SYSTEM("System"),// might need to provide enumeration for different versions 1.5 vs 1.7
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
|
||||
public class MetadataException extends Exception {
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
public enum MetadataType {
|
||||
EDITMASK,
|
|
@ -5,10 +5,10 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public abstract class AttrAbstractText implements AttrType<String> {
|
||||
protected int min;
|
|
@ -5,9 +5,9 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrAlphanum extends AttrAbstractText {
|
||||
|
|
@ -5,10 +5,10 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrBoolean implements AttrType<Boolean> {
|
||||
public Boolean parse(String value, boolean strict) throws MetaParseException {
|
|
@ -11,15 +11,15 @@
|
|||
* 2011-06-01T18:06:58
|
||||
* should find a more elegant way
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
//import java.text.DateFormat;
|
||||
//import java.text.ParseException;
|
||||
//import java.text.SimpleDateFormat;
|
||||
//import java.util.Date;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
/**
|
||||
* Converted this class to return a String instead of a
|
|
@ -5,13 +5,13 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Collections;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrEnum extends AttrAbstractText {
|
||||
public AttrEnum(String[] values) {
|
|
@ -5,9 +5,9 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrGenericText extends AttrAbstractText {
|
||||
private String mChars;
|
|
@ -5,10 +5,10 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrNumeric implements AttrType<Integer> {
|
||||
public Integer parse(String value, boolean strict) throws MetaParseException {
|
|
@ -5,10 +5,10 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrNumericPositive implements AttrType<Integer> {
|
||||
|
|
@ -5,9 +5,9 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrPlaintext extends AttrAbstractText {
|
||||
public AttrPlaintext(int min, int max) {
|
|
@ -5,9 +5,9 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrText extends AttrAbstractText {
|
||||
public AttrText(int min, int max) {
|
|
@ -5,11 +5,11 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
/**
|
||||
* A version is a string formatted "major.minor.release". This gets converted
|
|
@ -1,11 +1,11 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Collection;
|
||||
//import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MClass extends MetaObject {
|
||||
public static final String CLASSNAME = "ClassName";
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MEditMask extends MetaObject {
|
||||
public static final String METADATAENTRYID = "MetadataEntryID";
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MForeignKey extends MetaObject {
|
||||
public static final String FOREIGNKEYID = "ForeignKeyID";
|
|
@ -1,10 +1,10 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
//import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MLookup extends MetaObject {
|
||||
private static final MetadataType[] CHILDREN = { MetadataType.LOOKUP_TYPE };
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MLookupType extends MetaObject {
|
||||
public static final String METADATAENTRYID = "MetadataEntryID";
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MObject extends MetaObject {
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
//import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MResource extends MetaObject {
|
||||
private static final MetadataType[] CHILDREN = {
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MSearchHelp extends MetaObject {
|
||||
public static final String METADATAENTRYID = "MetadataEntryID";
|
|
@ -1,10 +1,10 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
//import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MSystem extends MetaObject {
|
||||
public static final String SYSTEMID = "SystemID";
|
|
@ -1,11 +1,11 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrEnum;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrEnum;
|
||||
|
||||
public class MTable extends MetaObject {
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
//import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MUpdate extends MetaObject {
|
||||
public static final String METADATAENTRYID = "MetadataEntryID";
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MUpdateHelp extends MetaObject {
|
||||
public static final String METADATAENTRYID = "MetadataEntryID";
|
|
@ -1,11 +1,11 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrGenericText;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrGenericText;
|
||||
|
||||
public class MUpdateType extends MetaObject {
|
||||
public static final String METADATAENTRYID = "MetadataEntryID";
|
|
@ -1,11 +1,11 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.common.metadata.attrib.AttrEnum;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.attrib.AttrEnum;
|
||||
|
||||
public class MValidationExpression extends MetaObject {
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
//import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MValidationExternal extends MetaObject {
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MValidationExternalType extends MetaObject {
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
//import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MValidationLookup extends MetaObject {
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
package com.ossez.usreio.common.metadata.types;
|
||||
package com.ossez.usreio.tests.common.metadata.types;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.common.metadata.MetadataType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaObject;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataType;
|
||||
|
||||
public class MValidationLookupType extends MetaObject {
|
||||
public static final String METADATAENTRYID = "MetadataEntryID";
|
Binary file not shown.
Before Width: | Height: | Size: 75 KiB |
|
@ -1,18 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<METADATA-LOOKUP Resource="Property" Version="1.00.000" Date="Sat, 20 Mar 2002 12:03:38 GMT">
|
||||
<COLUMNS> LookupName VisibleName Version Date </COLUMNS>
|
||||
<DATA> E_SCHOOL Elementary School District 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> H_SCHOOL High School District 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> AR Area 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> IFT Interior Features 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> VEW View 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> LISTING_TYPE Listing Type 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> LISTING_STATUS Listing Status 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> M_SCHOOL Middle School District 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
<DATA> EFT Exerior Features 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
</METADATA-LOOKUP>
|
||||
<METADATA-LOOKUP Resource="Agent" Version="1.00.000" Date="Sat, 20 Mar 2002 12:03:38 GMT">
|
||||
<COLUMNS> LookupName VisibleName Version Date </COLUMNS>
|
||||
<DATA> DESIGNATIONS DESIGNATIONS 1.00.000 Sat, 20 Mar 2002 12:03:38 GMT </DATA>
|
||||
</METADATA-LOOKUP>
|
||||
</RETS>
|
|
@ -1 +0,0 @@
|
|||
<RETS ReplyCode="20503" ReplyText="No Records"/>
|
|
@ -1,6 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<METADATA-SYSTEM Version="01.00.001" Date="Tue, 27 May 2003 12:00:00 CDT">
|
||||
<SYSTEM SystemID="CRT_RETS" SystemDescription="Center for REALTOR Technology"/>
|
||||
<COMMENTS>The reference implementation of a RETS Server</COMMENTS>
|
||||
</METADATA-SYSTEM>
|
||||
</RETS>
|
|
@ -1,7 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<METADATA-UPDATE_TYPE Resource="ActiveAgent" Class="ACTAGT" Update="Change_ACTAGT" Version="1.00.000" Date="Sat, 20 Mar 2002 12:03:38 GMT">
|
||||
<COLUMNS> SystemName Sequence Attributes Default ValidationExpressionID UpdateHelpID ValidationLookupName ValidationExternalName </COLUMNS>
|
||||
<DATA> AGENT_ID 1 1 0 </DATA>
|
||||
<DATA> OFFICE_ID 2 2 0 </DATA>
|
||||
</METADATA-UPDATE_TYPE>
|
||||
</RETS>
|
|
@ -1,17 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<RETS-RESPONSE>
|
||||
broker = B123, BO987
|
||||
membername = Joe T. Schmoe
|
||||
metadataversion = 1.00.000
|
||||
minmetadataversion = 1.00.000
|
||||
user = A123,5678,1,A123
|
||||
login = http://rets.test:6103/login
|
||||
logout = http://rets.test:6103/logout
|
||||
search = http://rets.test:6103/search
|
||||
getmetadata = http://rets.test:6103/getMetadata
|
||||
changepassword = http://rets.test:6103/changePassword
|
||||
getobject = http://rets.test:6103/getObjectEx
|
||||
action = http://rets.test:6103/get
|
||||
balance = 44.21
|
||||
timeoutseconds = 60
|
||||
</RETS-RESPONSE></RETS>
|
|
@ -1,6 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<RETS-RESPONSE>
|
||||
connecttime = 1000
|
||||
billing = $20.00
|
||||
signoffmessage = Good Bye
|
||||
</RETS-RESPONSE></RETS>
|
|
@ -1,4 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<RETS-RESPONSE>
|
||||
Logged Out
|
||||
</RETS-RESPONSE></RETS>
|
|
@ -1,5 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
ConnectTime = 1000
|
||||
Billing = $20.00
|
||||
SignOffMessage = Good Bye
|
||||
</RETS>
|
|
@ -1,6 +0,0 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<RETS-RESPONSE>
|
||||
ConnectTime = 1000
|
||||
Billing = $20.00
|
||||
SignOffMessage = Good Bye
|
||||
</RETS-RESPONSE></RETS>
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestSuite;
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client.tests;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import com.ossez.usreio.client.retsapi.RETSConnection;
|
|
@ -1,4 +1,8 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import com.ossez.usreio.client.GetMetadataRequest;
|
||||
import com.ossez.usreio.client.InvalidArgumentException;
|
||||
import com.ossez.usreio.client.RetsException;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
//import java.util.List;
|
||||
//import java.util.ArrayList;
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
|
@ -7,6 +7,9 @@ import java.io.InputStream;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.client.GetObjectIterator;
|
||||
import com.ossez.usreio.client.GetObjectResponse;
|
||||
import com.ossez.usreio.client.SingleObjectResponse;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class GetObjectResponseIteratorTest extends TestCase {
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.io.FilterReader;
|
||||
import java.io.IOException;
|
|
@ -1,4 +1,6 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import com.ossez.usreio.client.LoginRequest;
|
||||
|
||||
public class LoginRequestTest extends RetsTestCase {
|
||||
public void testGetUrl() {
|
|
@ -1,6 +1,10 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
|
||||
import com.ossez.usreio.client.CapabilityUrls;
|
||||
import com.ossez.usreio.client.LoginResponse;
|
||||
import com.ossez.usreio.client.RetsException;
|
||||
import com.ossez.usreio.client.RetsVersion;
|
||||
import org.junit.Test;
|
||||
|
||||
public class LoginResponseTest extends RetsTestCase {
|
|
@ -1,4 +1,8 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import com.ossez.usreio.client.LogoutResponse;
|
||||
import com.ossez.usreio.client.RetsException;
|
||||
import com.ossez.usreio.client.RetsVersion;
|
||||
|
||||
public class LogoutResponseTest extends RetsTestCase {
|
||||
/*
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client.tests;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import com.ossez.usreio.client.retsapi.RETSConnection;
|
|
@ -1,10 +1,10 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
|
||||
import com.ossez.usreio.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MClass;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MResource;
|
||||
import com.ossez.usreio.tests.common.metadata.types.MSystem;
|
||||
import com.ossez.usreio.client.*;
|
||||
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.examples;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.examples;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
import java.util.Arrays;
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.examples;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
|
|
@ -1,16 +1,14 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import com.ossez.usreio.client.RetsException;
|
||||
import com.ossez.usreio.client.RetsSession;
|
||||
import com.ossez.usreio.client.RetsVersion;
|
||||
import com.ossez.usreio.common.util.SessionUtils;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestInstance;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Properties;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNull;
|
||||
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.TestInstance;
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
public class RetsVersionTest extends RetsTestCase {
|
||||
|
|
@ -5,10 +5,11 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.io.StringReader;
|
||||
|
||||
import com.ossez.usreio.client.*;
|
||||
import org.xml.sax.InputSource;
|
||||
|
||||
/**
|
|
@ -5,7 +5,9 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import com.ossez.usreio.client.SearchResultImpl;
|
||||
|
||||
import java.util.NoSuchElementException;
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.client.SingleObjectResponse;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class SingleObjectResponseTest extends TestCase {
|
|
@ -1,8 +1,9 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import java.io.Reader;
|
||||
import java.io.StringReader;
|
||||
|
||||
import com.ossez.usreio.client.*;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class StreamingSearchResultProcessorTest extends TestCase {
|
|
@ -1,4 +1,7 @@
|
|||
package com.ossez.usreio.client;
|
||||
package com.ossez.usreio.tests.client;
|
||||
|
||||
import com.ossez.usreio.client.InvalidReplyCodeException;
|
||||
import com.ossez.usreio.client.InvalidReplyCodeHandler;
|
||||
|
||||
final class TestInvalidReplyCodeHandler implements InvalidReplyCodeHandler {
|
||||
private int replyCode;
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
public class MetaObjectTest extends MetadataTestCase {
|
||||
public void testStrictAttributes() {
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.common.metadata;
|
||||
package com.ossez.usreio.tests.common.metadata;
|
||||
|
||||
import java.util.Map;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrAbstractTextTest extends AttrTypeTest {
|
||||
@Override
|
|
@ -1,7 +1,7 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrAlphanumTest extends AttrTypeTest {
|
||||
@Override
|
|
@ -1,7 +1,7 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrBooleanTest
|
||||
extends AttrTypeTest
|
|
@ -1,4 +1,4 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
public class AttrDateTest extends AttrTypeTest {
|
||||
public void testAttrDate() throws Exception {
|
|
@ -1,6 +1,6 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
|
||||
public class AttrEnumTest extends AttrTypeTest {
|
||||
public void testEnum() throws Exception {
|
|
@ -1,6 +1,6 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
|
||||
public class AttrGenericTextTest extends AttrTypeTest {
|
||||
public void testAttrGeneric() throws Exception {
|
|
@ -1,6 +1,6 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
|
||||
public class AttrNumericTest extends AttrTypeTest {
|
||||
public void testNumeric() throws Exception {
|
|
@ -1,6 +1,6 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
|
||||
public class AttrPlaintextTest extends AttrTypeTest {
|
||||
public void testPlaintext() throws Exception {
|
|
@ -1,6 +1,6 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
|
||||
public class AttrTextTest extends AttrTypeTest {
|
||||
public void testAttrText() throws Exception {
|
|
@ -5,11 +5,11 @@
|
|||
* Copyright (c) 2003, The National Association of REALTORS
|
||||
* Distributed under a BSD-style license. See LICENSE.TXT for details.
|
||||
*/
|
||||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.MetadataTestCase;
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.MetadataTestCase;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
/**
|
||||
* It's rare you can encapsulate the exception expecting tests, but I can,
|
|
@ -1,7 +1,7 @@
|
|||
package com.ossez.usreio.common.metadata.attrib;
|
||||
package com.ossez.usreio.tests.common.metadata.attrib;
|
||||
|
||||
import com.ossez.usreio.common.metadata.AttrType;
|
||||
import com.ossez.usreio.common.metadata.MetaParseException;
|
||||
import com.ossez.usreio.tests.common.metadata.AttrType;
|
||||
import com.ossez.usreio.tests.common.metadata.MetaParseException;
|
||||
|
||||
public class AttrVersionTest extends AttrTypeTest {
|
||||
@Override
|
|
@ -1,8 +1,9 @@
|
|||
package com.ossez.usreio.common.util;
|
||||
package com.ossez.usreio.tests.common.util;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ossez.usreio.common.util.CaseInsensitiveTreeMap;
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class CaseInsensitiveTreeMapTest extends TestCase {
|
|
@ -1,18 +1,17 @@
|
|||
<RETS ReplyCode="0" ReplyText="Operation Successful">
|
||||
<RETS-RESPONSE>
|
||||
broker = B123, BO987
|
||||
membername = Joe T. Schmoe
|
||||
metadataversion = 1.00.000
|
||||
minmetadataversion = 1.00.000
|
||||
user = A123,5678,1,A123
|
||||
login = http://rets.test:6103/login
|
||||
logout = http://rets.test:6103/logout
|
||||
search = http://rets.test:6103/search
|
||||
getmetadata = http://rets.test:6103/getMetadata
|
||||
changepassword = http://rets.test:6103/changePassword
|
||||
getobject = http://rets.test:6103/getObjectEx
|
||||
action = http://rets.test:6103/get
|
||||
balance = 44.21
|
||||
timeoutseconds = 60
|
||||
</RETS-RESPONSE>
|
||||
</RETS>
|
||||
<RETS-RESPONSE>
|
||||
broker = B123, BO987
|
||||
membername = Joe T. Schmoe
|
||||
metadataversion = 1.00.000
|
||||
minmetadataversion = 1.00.000
|
||||
user = A123,5678,1,A123
|
||||
login = http://rets.test:6103/login
|
||||
logout = http://rets.test:6103/logout
|
||||
search = http://rets.test:6103/search
|
||||
getmetadata = http://rets.test:6103/getMetadata
|
||||
changepassword = http://rets.test:6103/changePassword
|
||||
getobject = http://rets.test:6103/getObjectEx
|
||||
action = http://rets.test:6103/get
|
||||
balance = 44.21
|
||||
timeoutseconds = 60
|
||||
</RETS-RESPONSE></RETS>
|
||||
|
|
Loading…
Reference in New Issue