Search in sources :

Example 6 with GCModelLoader

use of com.tagtraum.perf.gcviewer.ctrl.GCModelLoader in project GCViewer by chewiebug.

the class GCModelSeriesLoaderImplTest method getGcResource.

@Test
public void getGcResource() throws Exception {
    ArrayList<GCResource> gcResourceList = new ArrayList<>();
    gcResourceList.add(new GcResourceFile(UnittestHelper.getResource(UnittestHelper.FOLDER_OPENJDK, "SampleSun1_8_0Series-Part1.txt").getPath()));
    gcResourceList.add(new GcResourceFile(UnittestHelper.getResource(UnittestHelper.FOLDER_OPENJDK, "SampleSun1_8_0Series-Part2.txt").getPath()));
    gcResourceList.add(new GcResourceFile(UnittestHelper.getResource(UnittestHelper.FOLDER_OPENJDK, "SampleSun1_8_0Series-Part3.txt").getPath()));
    GCModelLoader loader = new GCModelSeriesLoaderImpl(new GcResourceSeries(gcResourceList));
    assertThat(loader.getGcResource(), notNullValue());
}
Also used : GCModelLoader(com.tagtraum.perf.gcviewer.ctrl.GCModelLoader) GCResource(com.tagtraum.perf.gcviewer.model.GCResource) ArrayList(java.util.ArrayList) GcResourceFile(com.tagtraum.perf.gcviewer.model.GcResourceFile) GcResourceSeries(com.tagtraum.perf.gcviewer.model.GcResourceSeries) Test(org.junit.Test)

Aggregations

GCModelLoader (com.tagtraum.perf.gcviewer.ctrl.GCModelLoader)6 GCResource (com.tagtraum.perf.gcviewer.model.GCResource)2 GcResourceSeries (com.tagtraum.perf.gcviewer.model.GcResourceSeries)2 GCModelLoaderGroupTracker (com.tagtraum.perf.gcviewer.ctrl.GCModelLoaderGroupTracker)1 GcResourceFile (com.tagtraum.perf.gcviewer.model.GcResourceFile)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1