Package gov.nasa.jpf.conformanceChecker.providers

Examples of gov.nasa.jpf.conformanceChecker.providers.StandardClassProvider


        cls("java.lang.Object",
            method(PUBLIC, "java.lang.String", "toString", new String[]{})
            );
    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);
   
    Checker checker = new OrphanMethodChecker();
    assertFalse(checker.check(model));   
View Full Code Here


        cls("test.Class",
            field(PUBLIC, "java.lang.String", "name")
            );
    Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
    versions.put(just(6), standard);
    StandardClassProvider provider = createMock(StandardClassProvider.class);
    expect(provider.loadClassInfo("test.Class")).andReturn(versions);
    replay(provider);
    ProviderFactory.setStandardProvider(provider);

    Checker checker = new MissingInstanceFieldChecker();
    assertTrue(checker.check(model));   
View Full Code Here

        cls("test.Class",
            field(PUBLIC | STATIC, "java.lang.String", "name")
            );
    Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
    versions.put(just(6), standard);
    StandardClassProvider provider = createMock(StandardClassProvider.class);
    expect(provider.loadClassInfo("test.Class")).andReturn(versions);
    replay(provider);
    ProviderFactory.setStandardProvider(provider);

    Checker checker = new MissingStaticFieldChecker();
    assertTrue(checker.check(model));   
View Full Code Here

            field(PUBLIC, "java.lang.String", "name"),
            field(PUBLIC, "int", "number")
            );
    Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
    versions.put(just(6), standard);
    StandardClassProvider provider = createMock(StandardClassProvider.class);
    expect(provider.loadClassInfo("test.Class")).andReturn(versions);
    replay(provider);
    ProviderFactory.setStandardProvider(provider);

    Checker checker = new MissingInstanceFieldChecker();
    assertFalse(checker.check(model));   
View Full Code Here

            field(PUBLIC | STATIC, "java.lang.String", "name"),
            field(PUBLIC | STATIC, "int", "number")
            );
    Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
    versions.put(just(6), standard);
    StandardClassProvider provider = createMock(StandardClassProvider.class);
    expect(provider.loadClassInfo("test.Class")).andReturn(versions);
    replay(provider);
    ProviderFactory.setStandardProvider(provider);

    Checker checker = new MissingStaticFieldChecker();
    assertFalse(checker.check(model));   
View Full Code Here

            field(PROTECTED, "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(
View Full Code Here

            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(
View Full Code Here

            field(PROTECTED, "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();
    assertFalse(checker.compareArraysFast(
View Full Code Here

TOP

Related Classes of gov.nasa.jpf.conformanceChecker.providers.StandardClassProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.