APISonar


com.tagtraum.perf.gcviewer.exp.DataWriterType.CSV

> com > tagtraum > perf > gcviewer > exp > DataWriterType > CSV
com APIs tagtraum APIs perf APIs gcviewer APIs exp APIs DataWriterType APIs CSV APIs

Example 1
public void allInitialArgsWithType() throws Exception {
        String[] args = {"some_gc.log", "export_to.csv", "the_chart.png", "-t", "CSV"};
        GCViewerArgsParser gcViewerArgsParser = new GCViewerArgsParser();
        gcViewerArgsParser.parseArguments(args);

        assertEquals(gcViewerArgsParser.getArgumentCount(), 3);
        assertEquals(gcViewerArgsParser.getGcResource(), new GcResourceFile("some_gc.log"));
        assertEquals(gcViewerArgsParser.getSummaryFilePath(), "export_to.csv");
        assertEquals(gcViewerArgsParser.getChartFilePath(), "the_chart.png");
        assertEquals(gcViewerArgsParser.getType(), DataWriterType.CSV);
    }