URL url = this.getClass().getClassLoader().getResource("data/button.9.png"); mPatch = NinePatch.load(url, false /* convert */);
assertNotNull(mPatch);
int[] padding = new int[4]; mPatch.getPadding(padding); assertEquals(13, padding[0]); assertEquals(3, padding[1]); assertEquals(13, padding[2]); assertEquals(4, padding[3]); assertEquals(38, mPatch.getWidth()); assertEquals(27, mPatch.getHeight());