* @author Dennis Reedy
*/
public class MemInfoMonitorTest {
@Test
public void testParsing() {
MemInfoMonitor memInfoMonitor = new MemInfoMonitor();
memInfoMonitor.setID("System Memory");
memInfoMonitor.setThresholdValues(new ThresholdValues(0, 1.0));
memInfoMonitor.setMemInfoFile("src/test/resources/meminfo");
SystemMemoryUtilization memoryUtilization = memInfoMonitor.getMeasuredResource();
Assert.assertNotNull(memoryUtilization);
System.out.println("Free: "+memoryUtilization.getFree()+" MB");
System.out.println("Active: "+memoryUtilization.getUsed()+" MB");
System.out.println("Total: "+memoryUtilization.getTotal()+" MB");
System.out.println("Used %: "+memoryUtilization.getUsedPercentage());