org.apache.qpid.server.failure
Class HeapExhaustion

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.qpid.server.failure.HeapExhaustion
All Implemented Interfaces:
junit.framework.Test

public class HeapExhaustion
extends junit.framework.TestCase

Test Case provided by client Non-functional Test NF101: heap exhaustion behaviour


Field Summary
protected  String BROKER
           
protected  QpidClientConnectionHelper conn
           
protected  String hundredK
           
protected  String megabyte
           
protected  String queue
           
protected  String vhost
           
 
Constructor Summary
HeapExhaustion()
           
 
Method Summary
protected  String generatePayloadOfSize(Integer numBytes)
           
static void main(String[] args)
           
static void noDelay()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testUntilFailureTransient()
          PUT at maximum rate (although we commit after each PUT) until failure
 void testUntilFailureWithDelaysTransient()
          PUT at lower rate (5 per second) until failure
static void withDelay()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conn

protected QpidClientConnectionHelper conn

BROKER

protected final String BROKER
See Also:
Constant Field Values

vhost

protected final String vhost
See Also:
Constant Field Values

queue

protected final String queue
See Also:
Constant Field Values

hundredK

protected String hundredK

megabyte

protected String megabyte
Constructor Detail

HeapExhaustion

public HeapExhaustion()
Method Detail

generatePayloadOfSize

protected String generatePayloadOfSize(Integer numBytes)

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testUntilFailureTransient

public void testUntilFailureTransient()
                               throws Exception
PUT at maximum rate (although we commit after each PUT) until failure

Throws:
Exception - on error

testUntilFailureWithDelaysTransient

public void testUntilFailureWithDelaysTransient()
                                         throws Exception
PUT at lower rate (5 per second) until failure

Throws:
Exception - on error

noDelay

public static void noDelay()

withDelay

public static void withDelay()

main

public static void main(String[] args)


Licensed to the Apache Software Foundation