public void assertMemoryNotLow ( ) { ActivityManager . MemoryInfo mi = new ActivityManager . MemoryInfo ( ) ; ( ( ActivityManager ) activityUtils . getCurrentActivity ( ) . getSystemService ( "activity" ) ) . getMemoryInfo ( mi ) ; Assert . assertFalse ( "Low memory available: " + mi . availMem + " bytes!" , mi . lowMemory ) ; }
Asserts that the available memory is not considered low by the system .