public void generateCurrentQueueName(String currentQueueNamePrefix){
  if (validateTestCreds()) {
    ListQueuesResult list=sqs.listQueues(currentQueueNamePrefix);
    for (    String url : list.getQueueUrls()) {
      sqs.deleteQueue(url);
    }
  }
  this.currentQueueName=currentQueueNamePrefix + System.currentTimeMillis();
}

public void generateCurrentQueueName ( String currentQueueNamePrefix ) { if ( validateTestCreds ( ) ) { ListQueuesResult list = sqs . listQueues ( currentQueueNamePrefix ) ; for ( String url : list . getQueueUrls ( ) ) { sqs . deleteQueue ( url ) ; } } this . currentQueueName = currentQueueNamePrefix + System . currentTimeMillis ( ) ; }
each test creates its own uniquely named queue in sqs and then deletes it afterwards . we try to scrub any leftover queues from the previous runs just in case tests were aborted
