congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RandomUtil.randomSimpleString
Code IndexAdd Tabnine to your IDE (free)

How to use
randomSimpleString
method
in
org.apache.activemq.artemis.utils.RandomUtil

Best Java code snippets using org.apache.activemq.artemis.utils.RandomUtil.randomSimpleString (Showing top 20 results out of 315)

origin: apache/activemq-artemis

  @Override
  public void run() throws ActiveMQException {
   session.createTemporaryQueue(RandomUtil.randomSimpleString(), RandomUtil.randomSimpleString());
  }
});
origin: apache/activemq-artemis

  @Override
  public void run() throws ActiveMQException {
   session.addressQuery(RandomUtil.randomSimpleString());
  }
});
origin: apache/activemq-artemis

  @Override
  public void run() throws ActiveMQException {
   session.createConsumer(RandomUtil.randomSimpleString());
  }
});
origin: apache/activemq-artemis

  @Override
  public void run() throws ActiveMQException {
   session.queueQuery(RandomUtil.randomSimpleString());
  }
});
origin: apache/activemq-artemis

  @Override
  public void run() throws ActiveMQException {
   session.createQueue(RandomUtil.randomSimpleString(), RandomUtil.randomSimpleString(), RandomUtil.randomBoolean());
  }
});
origin: apache/activemq-artemis

@Before
public void setUp() throws Exception {
 props = new TypedProperties();
 key = RandomUtil.randomSimpleString();
}
origin: apache/activemq-artemis

@Before
public void setUp() throws Exception {
 key = RandomUtil.randomSimpleString();
 props = new TypedProperties();
}
origin: apache/activemq-artemis

@Test
public void testListMessageCounterAsHTML() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 SimpleString queue = RandomUtil.randomSimpleString();
 session.createQueue(address, RoutingType.MULTICAST, queue, null, durable);
 QueueControl queueControl = createManagementControl(address, queue);
 String history = queueControl.listMessageCounterAsHTML();
 Assert.assertNotNull(history);
 session.deleteQueue(queue);
}
origin: apache/activemq-artemis

@Test
public void testGetAddress() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 SimpleString queue = RandomUtil.randomSimpleString();
 session.createQueue(address, queue, false);
 AddressControl addressControl = createManagementControl(address);
 Assert.assertEquals(address.toString(), addressControl.getAddress());
 session.deleteQueue(queue);
}
origin: apache/activemq-artemis

@Test
public void testSimpleStringProperty() throws Exception {
 SimpleString strVal = RandomUtil.randomSimpleString();
 props.putSimpleStringProperty(key, strVal);
 Assert.assertEquals(strVal, props.getSimpleStringProperty(key));
}
origin: apache/activemq-artemis

@Test
public void testGetNullFilter() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 SimpleString queue = RandomUtil.randomSimpleString();
 session.createQueue(address, RoutingType.MULTICAST, queue, null, durable);
 QueueControl queueControl = createManagementControl(address, queue);
 Assert.assertEquals(queue.toString(), queueControl.getName());
 Assert.assertNull(queueControl.getFilter());
 session.deleteQueue(queue);
}
origin: apache/activemq-artemis

@Test
public void testNonEmptySimpleString() throws Exception {
 SimpleString junk = RandomUtil.randomSimpleString();
 SimpleString result = putAndGetNullableSimpleString(junk);
 Assert.assertNotNull(result);
 ActiveMQTestBase.assertEqualsByteArrays(junk.getData(), result.getData());
}
origin: apache/activemq-artemis

@Test
public void testCloseHierarchy() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 SimpleString queue = RandomUtil.randomSimpleString();
 ClientSession session = sf.createSession(false, true, true);
 session.createQueue(address, queue, false);
 ClientProducer producer = session.createProducer(address);
 ClientConsumer consumer = session.createConsumer(queue);
 session.close();
 Assert.assertTrue(session.isClosed());
 Assert.assertTrue(producer.isClosed());
 Assert.assertTrue(consumer.isClosed());
}
origin: apache/activemq-artemis

@Test
public void testSetDeadLetterAddress() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 SimpleString queue = RandomUtil.randomSimpleString();
 String deadLetterAddress = RandomUtil.randomString();
 session.createQueue(address, RoutingType.MULTICAST, queue, null, durable);
 QueueControl queueControl = createManagementControl(address, queue);
 AddressSettings addressSettings = new AddressSettings().setDeadLetterAddress(new SimpleString(deadLetterAddress));
 server.getAddressSettingsRepository().addMatch(address.toString(), addressSettings);
 Assert.assertEquals(deadLetterAddress, queueControl.getDeadLetterAddress());
 session.deleteQueue(queue);
}
origin: apache/activemq-artemis

@Test
public void testAddressAdded() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 NotificationTest.flush(notifConsumer);
 session.createAddress(address, RoutingType.ANYCAST, true);
 ClientMessage[] notifications = NotificationTest.consumeMessages(1, notifConsumer);
 Assert.assertEquals(ADDRESS_ADDED.toString(), notifications[0].getObjectProperty(ManagementHelper.HDR_NOTIFICATION_TYPE).toString());
 Assert.assertEquals(RoutingType.ANYCAST.getType(), notifications[0].getObjectProperty(ManagementHelper.HDR_ROUTING_TYPE));
 Assert.assertEquals(address.toString(), notifications[0].getObjectProperty(ManagementHelper.HDR_ADDRESS).toString());
}
origin: apache/activemq-artemis

@Test
public void testAddressRemoved() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 session.createAddress(address, RoutingType.ANYCAST, true);
 NotificationTest.flush(notifConsumer);
 server.getPostOffice().removeAddressInfo(address);
 ClientMessage[] notifications = NotificationTest.consumeMessages(1, notifConsumer);
 Assert.assertEquals(ADDRESS_REMOVED.toString(), notifications[0].getObjectProperty(ManagementHelper.HDR_NOTIFICATION_TYPE).toString());
 Assert.assertEquals(RoutingType.ANYCAST.getType(), notifications[0].getObjectProperty(ManagementHelper.HDR_ROUTING_TYPE));
 Assert.assertEquals(address.toString(), notifications[0].getObjectProperty(ManagementHelper.HDR_ADDRESS).toString());
}
origin: apache/activemq-artemis

@Test
public void testRemove() throws Exception {
 props.putSimpleStringProperty(key, RandomUtil.randomSimpleString());
 Assert.assertTrue(props.containsProperty(key));
 Assert.assertNotNull(props.getProperty(key));
 props.removeProperty(key);
 Assert.assertFalse(props.containsProperty(key));
 Assert.assertNull(props.getProperty(key));
}
origin: apache/activemq-artemis

@Test
public void testClear() throws Exception {
 props.putSimpleStringProperty(key, RandomUtil.randomSimpleString());
 Assert.assertTrue(props.containsProperty(key));
 Assert.assertNotNull(props.getProperty(key));
 props.clear();
 Assert.assertFalse(props.containsProperty(key));
 Assert.assertNull(props.getProperty(key));
}
origin: apache/activemq-artemis

@Test
public void testGetRoutingTypesAsJSON() throws Exception {
 SimpleString address = RandomUtil.randomSimpleString();
 session.createAddress(address, RoutingType.ANYCAST, false);
 AddressControl addressControl = createManagementControl(address);
 JsonArray jsonArray = JsonUtil.readJsonArray(addressControl.getRoutingTypesAsJSON());
 assertEquals(1, jsonArray.size());
 assertEquals(RoutingType.ANYCAST.toString(), ((JsonString) jsonArray.get(0)).getString());
}
origin: apache/activemq-artemis

@Test
public void testCopyContructor() throws Exception {
 props.putSimpleStringProperty(key, RandomUtil.randomSimpleString());
 TypedProperties copy = new TypedProperties(props);
 Assert.assertEquals(props.getEncodeSize(), copy.getEncodeSize());
 Assert.assertEquals(props.getPropertyNames(), copy.getPropertyNames());
 Assert.assertTrue(copy.containsProperty(key));
 Assert.assertEquals(props.getProperty(key), copy.getProperty(key));
}
org.apache.activemq.artemis.utilsRandomUtilrandomSimpleString

Popular methods of RandomUtil

  • randomInt
  • randomLong
  • randomString
  • randomByte
  • randomBytes
  • randomPositiveInt
  • randomInterval
  • randomBoolean
  • randomDouble
  • randomChar
  • randomPositiveLong
  • randomFloat
  • randomPositiveLong,
  • randomFloat,
  • randomShort,
  • getRandom,
  • randomBuffer

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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