public class MaxHeapSizeUtilTest
extends junit.framework.TestCase
MaxHeapSizeUtil
.Constructor and Description |
---|
MaxHeapSizeUtilTest() |
Modifier and Type | Method and Description |
---|---|
void |
testGetMaxMemSetting_128m()
Test method for
MaxHeapSizeUtil.getMavenMaxMemSetting() . |
void |
testGetMaxMemSetting_none()
Test method for
MaxHeapSizeUtil.getMavenMaxMemSetting() . |
void |
testHasMaxMemSetting_128m()
Test method for
MaxHeapSizeUtil.envHasMavenMaxMemSetting() . |
void |
testHasMaxMemSetting_garbage()
Test method for
MaxHeapSizeUtil.envHasMavenMaxMemSetting() . |
void |
testHasMaxMemSetting_noMavenOpts()
Test method for
MaxHeapSizeUtil.envHasMavenMaxMemSetting() . |
void |
testHasMaxMemSetting_noMaxMem()
Test method for
MaxHeapSizeUtil.envHasMavenMaxMemSetting() . |
void |
testHasMaxMemSetting_noUnits()
Test method for
MaxHeapSizeUtil.envHasMavenMaxMemSetting() . |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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, format
public void testHasMaxMemSetting_noMavenOpts()
MaxHeapSizeUtil.envHasMavenMaxMemSetting()
.
The scenario is we set the environment map to one that lacks a maven options setting.
The expected result is that it returns false
.public void testHasMaxMemSetting_noMaxMem()
MaxHeapSizeUtil.envHasMavenMaxMemSetting()
.
The scenario is we set the environment map to one that has a maven setting
but no max heap size setting.
The expected result is that it returns false
.public void testHasMaxMemSetting_garbage()
MaxHeapSizeUtil.envHasMavenMaxMemSetting()
.
The scenario is we set the environment map to one that has a maven setting
but it is an invalid max heap size setting.
The expected result is that it returns false
without error.public void testHasMaxMemSetting_noUnits()
MaxHeapSizeUtil.envHasMavenMaxMemSetting()
.
The scenario is we set the environment map to one that has a maven setting
but a heap size setting that lacks the required unit designation.
The expected result is that it returns false
.public void testHasMaxMemSetting_128m()
MaxHeapSizeUtil.envHasMavenMaxMemSetting()
.
The scenario is we set 128m in the evironment map.
The expected result is that it returns true
.public void testGetMaxMemSetting_128m()
MaxHeapSizeUtil.getMavenMaxMemSetting()
.
The scenario is we set 128m in the evironment map.
The expected result is that 128m is returned.public void testGetMaxMemSetting_none()
MaxHeapSizeUtil.getMavenMaxMemSetting()
.
The scenario is we set the environment map to one that lacks a maven setting.
The expected result is that the method returns null
without error.Copyright © 2005–2015 Codehaus. All rights reserved.