public class TestParsing extends TestCase2
TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestParsing() |
TestParsing(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
assertField(String header,
String[] fields,
int field,
String expected)
Used to verify that the header corresponds to our expectations.
|
void |
test_get_data_incorrect() |
void |
test_get_data_map() |
void |
test_pid_stat_collector_extra_column() |
void |
test_pid_stat_collector_valid() |
protected void |
test_pid_stat_collector(String output) |
void |
test_pidStat_data_parse()
Test parse of the sysstat ISO date format.
|
void |
test_splitDataLine01()
Test for
SysstatUtil.splitDataLine(String). |
void |
test_splitDataLine02()
Test for
SysstatUtil.splitDataLine(String). |
void |
test_splitDataLineLeadingSpaces()
Test for
SysstatUtil.splitDataLine(String). |
void |
test_vmstat_header_and_data_parse()
Test based on some sample data.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic TestParsing()
public TestParsing(String name)
public void test_splitDataLine01()
SysstatUtil.splitDataLine(String).public void test_splitDataLine02()
SysstatUtil.splitDataLine(String).public void test_splitDataLineLeadingSpaces()
SysstatUtil.splitDataLine(String).public void test_pidStat_data_parse()
public void test_vmstat_header_and_data_parse()
public void test_get_data_map()
public void test_get_data_incorrect()
protected static void assertField(String header, String[] fields, int field, String expected)
header - The header line.fields - The fields parsed from that header.field - The field number in [0:#fields-1].expected - The expected value of the header for that field.public void test_pid_stat_collector_valid()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void test_pid_stat_collector_extra_column()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprotected void test_pid_stat_collector(String output) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.