final Location loc = new Location(10, 10);
assertEquals(ViewAreaType.CONTENT, av.viewAreaType(loc));
}
public void testBoundsSetSizeAndLocation() throws Exception {
final Location l = new Location();
final Size z = new Size();
final View view = new AbstractView(new NullContent()) {
@Override
public void setLocation(final Location location) {
l.translate(location);
}
@Override
public void setSize(final Size size) {
z.extend(size);
}
};
view.setBounds(new Bounds(20, 30, 40, 50));
assertEquals(new Location(20, 30), l);
assertEquals(new Size(40, 50), z);
}