Tabnine Logo
TextMessage.clearProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
clearProperties
method
in
javax.jms.TextMessage

Best Java code snippets using javax.jms.TextMessage.clearProperties (Showing top 5 results out of 315)

origin: objectweb-joramtests/joramtests

/**
* Test that the <code>Message.clearProperties()</code> method does not clear the
* value of the Message's body.
*/
public void testClearProperties_2()
{
 try
 {
   TextMessage message = senderSession.createTextMessage();
   message.setText("foo");
   message.clearProperties();
   Assert.assertEquals("sec. 3.5.7 Clearing a message's  property entries does not clear the value of its body.\n",
             "foo",
             message.getText());
 }
 catch (JMSException e)
 {
   fail(e);
 }
}
origin: objectweb-joramtests/joramtests

/**
* Test that the <code>Message.clearProperties()</code> method deletes all the 
* properties of the Message.
*/
public void testClearProperties_1()
{
 try
 {
   TextMessage message = senderSession.createTextMessage();
   message.setStringProperty("prop", "foo");
   message.clearProperties();
   Assert.assertEquals("sec. 3.5.7 A message's properties are deleted by the clearProperties method.\n",
             null,
             message.getStringProperty("prop"));
 }
 catch (JMSException e)
 {
   fail(e);
 }
}
origin: apache/activemq-artemis

@Test
public void testClearProperties() throws Exception {
 ((TextMessage) message).setText("something");
 queueProd.send(message);
 TextMessage rm = (TextMessage) queueCons.receive();
 rm.clearProperties();
 ProxyAssertSupport.assertEquals("something", rm.getText());
}
origin: apache/activemq-artemis

/**
* Test that the <code>Message.clearProperties()</code> method does not clear the
* value of the Message's body.
*/
@Test
public void testClearProperties_2() {
 try {
   TextMessage message = senderSession.createTextMessage();
   message.setText("foo");
   message.clearProperties();
   Assert.assertEquals("sec. 3.5.7 Clearing a message's  property entries does not clear the value of its body.\n", "foo", message.getText());
 } catch (JMSException e) {
   fail(e);
 }
}
origin: apache/activemq-artemis

  /**
  * Test that the <code>Message.clearProperties()</code> method deletes all the
  * properties of the Message.
  */
  @Test
  public void testClearProperties_1() {
   try {
     TextMessage message = senderSession.createTextMessage();
     message.setStringProperty("prop", "foo");
     message.clearProperties();
     Assert.assertEquals("sec. 3.5.7 A message's properties are deleted by the clearProperties method.\n", null, message.getStringProperty("prop"));
   } catch (JMSException e) {
     fail(e);
   }
  }
}
javax.jmsTextMessageclearProperties

Popular methods of TextMessage

  • getText
    Gets the string containing this message's data. The default value is null.
  • setText
    Sets the string containing this message's data.
  • setStringProperty
  • setJMSCorrelationID
  • setIntProperty
  • setLongProperty
  • getStringProperty
  • setBooleanProperty
  • setJMSReplyTo
  • getJMSCorrelationID
  • getJMSMessageID
  • getJMSReplyTo
  • getJMSMessageID,
  • getJMSReplyTo,
  • setDoubleProperty,
  • acknowledge,
  • setJMSType,
  • getJMSDeliveryMode,
  • setObjectProperty,
  • getIntProperty,
  • getJMSPriority,
  • clearBody

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Notification (javax.management)
  • JFileChooser (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now