Package eu.admire.gateway.common.errors

Examples of eu.admire.gateway.common.errors.ObjectFactory


   
    public DISPELProcessBackgroundThread(DISPELProcess dispelProcess)
    {
        mDISPELProcess = dispelProcess;
        mDISPEL = dispelProcess.getDISPELString();
        mErrors = new ObjectFactory().createErrors();
        try
        {
            mMarshaller = JAXBContext.newInstance(Errors.class).createMarshaller();
            mMarshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
        }
View Full Code Here


    public ProcessingErrorListener(DistributedDISPELProcessor processor, Errors errors)
    {
        mErrors = errors;
        mProcessor = processor;
        mObjectFactory = new ObjectFactory();
    }
View Full Code Here

public class TestErrors {

  @Test
  public void noErrors(){

    Errors mErrors = new ObjectFactory().createErrors();

    String errorString = marshallErrors(mErrors);
    System.out.println(errorString);   
      Errors ret = unmarshallErrors(errorString);
   
View Full Code Here

  }
 
  @Test
  public void system(){

    Errors mErrors = new ObjectFactory().createErrors();
   
    String expected = "system";
    mErrors.setSystem(expected);

    String errorString = marshallErrors(mErrors);
View Full Code Here

  }
 
  @Test
  public void compile(){

    Errors mErrors = new ObjectFactory().createErrors();
    CompiletimeErrorType mCompiletimeErrorType = new ObjectFactory().createCompiletimeErrorType();
    ErrorType mErrorType = new ErrorType();

    String expected = "compile";
   
    mErrorType.setMessage(expected);
View Full Code Here

  }
 
  @Test
  public void runtime(){

    Errors mErrors = new ObjectFactory().createErrors();
    RuntimeErrorType mRuntimeErrorType = new ObjectFactory().createRuntimeErrorType();
    ProcessingElementErrorType mProcessingElementErrorType = new ProcessingElementErrorType();

    String expectedType = "run-type";
    String expectedInstance = "run-instance";
   
View Full Code Here

TOP

Related Classes of eu.admire.gateway.common.errors.ObjectFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.