Examples of OadrSignedObject


Examples of com.enernoc.open.oadr2.model.v20b.OadrSignedObject

      assertEquals( "Extension should have the OADR2 namespace",
              XMLNS.OADR2.getNamespaceURI(), extension.getNamespace());
      Object pObj = extension.getPayload();
      assertNotNull( "Extension payload should not be null", pObj );
      assertTrue( "Extension payload should be an OadrSignedObject", pObj instanceof OadrSignedObject );
      OadrSignedObject payload = (OadrSignedObject)pObj;
      assertEquals( "Request ID should match what was sent",
              "test 1234", payload.getOadrDistributeEvent().getRequestID() );
  }
View Full Code Here

Examples of com.enernoc.open.oadr2.model.v20b.OadrSignedObject

  @SuppressWarnings("unchecked")
    protected OadrSignedObject createEventPayload() {
    final XMLGregorianCalendar startDttm = xmlDataTypeFac.newXMLGregorianCalendar("2012-01-01T00:00:00Z");
    final ObjectFactory eiObjectFactory = new ObjectFactory();
   
    return new OadrSignedObject()
        .withOadrDistributeEvent( new OadrDistributeEvent()
            .withRequestID( "test 1234" )
            .withVtnID( "hi" )
          .withOadrEvents( new OadrEvent()
            .withEiEvent(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.