Examples of FedoraAtomMessage


Examples of com.bhle.access.jms.util.FedoraAtomMessage

  }

  @Test
  public void testReceiveIngestMessageFromFedora() throws JMSException,
      InterruptedException {
    FedoraAtomMessage atom;

    producer.send(util.getIngestPlainMessage());

    // wait enough time for the message to come
    Thread.sleep(1000);
    atom = atomListener.getAtomMessage();
    Assert.assertEquals(Method.INGEST, atom.getMethodName());
  }
View Full Code Here

Examples of com.bhle.access.jms.util.FedoraAtomMessage

  }

  @Test
  public void testReceivePurgeMessageFromFedora() throws JMSException,
      InterruptedException {
    FedoraAtomMessage atom;

    producer.send(util.getPurgeObjectPlainMessage());

    // wait enough time for the message to come
    Thread.sleep(1000);
    atom = atomListener.getAtomMessage();
    Assert.assertEquals(Method.PURGE_OBJECT, atom.getMethodName());

    producer.send(util.getPurgeDatastreamPlainMessage());

    // wait enough time for the message to come
    Thread.sleep(1000);
    atom = atomListener.getAtomMessage();
    Assert.assertEquals(Method.PURGE_DATASTREAM, atom.getMethodName());
  }
View Full Code Here

Examples of com.bhle.access.jms.util.FedoraAtomMessage

  }

  @Test
  public void testReceiveModifyMessageFromFedora() throws JMSException,
      InterruptedException {
    FedoraAtomMessage atom;

    producer.send(util.getModifyObjectPlainMessage());

    // wait enough time for the message to come
    Thread.sleep(1000);
    atom = atomListener.getAtomMessage();
    Assert.assertEquals(Method.MODIFY_OBJECT, atom.getMethodName());

    producer.send(util.getModifyDatastreamPlainMessage());

    // wait enough time for the message to come
    Thread.sleep(1000);
    atom = atomListener.getAtomMessage();
    Assert.assertEquals(Method.MODIFY_DATASTREAM, atom.getMethodName());
  }
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.