model.getDeclaredInstanceFields(), standard.getDeclaredInstanceFields(), just(6)));
}
@Test
public void testSuccess2() {
ClassInfo model =
cls("java.lang.Object",
field(PUBLIC | STATIC, "java.lang.String", "toString"),
field(PROTECTED | STATIC, "java.lang.String", "name"),
field(PRIVATE, "java.lang.String", "other")
);
ClassInfo standard =
cls("java.lang.Object",
field(PUBLIC | STATIC, "java.lang.String", "toString"),
field(PROTECTED |STATIC, "java.lang.String", "name"),
field(PRIVATE, "java.lang.String", "other")
);
Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
versions.put(just(6), standard);
StandardClassProvider provider = createMock(StandardClassProvider.class);
expect(provider.loadClassInfo("java.lang.Object")).andReturn(versions);
replay(provider);
ProviderFactory.setStandardProvider(provider);
StateChecker checker = new TestStateCheckerImpl();
assertTrue(checker.compareArraysFast(
model.getDeclaredStaticFields(), standard.getDeclaredStaticFields(), just(6)));
}