D | ATResponseParserTest.java | 25 ATResponseParser p = new ATResponseParser("+CREG: 0"); in testBasic() local 27 assertEquals(0, p.nextInt()); in testBasic() 29 assertFalse(p.hasMore()); in testBasic() 32 p.nextInt(); in testBasic() 38 p = new ATResponseParser("+CREG: 0,1"); in testBasic() 39 assertEquals(0, p.nextInt()); in testBasic() 40 assertEquals(1, p.nextInt()); in testBasic() 41 assertFalse(p.hasMore()); in testBasic() 43 p = new ATResponseParser("+CREG: 0, 1"); in testBasic() 44 assertEquals(0, p.nextInt()); in testBasic() [all …]
|