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);
   
    MissingMethodChecker checker = new MissingMethodChecker();
    assertTrue(checker.check(model));   
View Full Code Here


            method(PUBLIC, "java.lang.String", "toString", new String[]{}),
            method(PUBLIC, "java.lang.String", "substring", new String[]{"int"})
            );
    Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
    versions.put(just(6), standard);
    StandardClassProvider provider = createMock(StandardClassProvider.class);
    expect(provider.loadClassInfo("java.lang.String")).andReturn(versions);
    replay(provider);
    ProviderFactory.setStandardProvider(provider);
   
    MissingMethodChecker checker = new MissingMethodChecker();
    assertTrue(checker.check(model));   
View Full Code Here

            method(PUBLIC, "java.lang.String", "toString", new String[]{}),
            method(PUBLIC, "java.lang.String", "substring", new String[]{"int","int"})
            );
    Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
    versions.put(just(6), standard);
    StandardClassProvider provider = createMock(StandardClassProvider.class);
    expect(provider.loadClassInfo("java.lang.String")).andReturn(versions);
    replay(provider);
    ProviderFactory.setStandardProvider(provider);
   
    MissingMethodChecker checker = new MissingMethodChecker();
    assertFalse(checker.check(model));   
View Full Code Here

            method(PUBLIC, "java.lang.String", "toString", new String[]{}),
            method(PUBLIC, "java.lang.String", "substring", new String[]{"int"})
            );
    Map<MaybeVersion, ClassInfo> versions = new HashMap<MaybeVersion, ClassInfo>();
    versions.put(just(6), standard);
    StandardClassProvider provider = createMock(StandardClassProvider.class);
    expect(provider.loadClassInfo("java.lang.String")).andReturn(versions);
    replay(provider);
    ProviderFactory.setStandardProvider(provider);
   
    MissingMethodChecker checker = new MissingMethodChecker();
    assertFalse(checker.check(model));   
View Full Code Here

            field(PUBLIC, "java.lang.String", "name"),
            field(PROTECTED, "java.lang.String", "fullName")
            );
    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 OrphanInstanceFieldChecker();
    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 OrphanStaticFieldChecker();
    assertTrue(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 OrphanInstanceFieldChecker();
    assertFalse(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 OrphanStaticFieldChecker();
    assertFalse(checker.check(model));   
View Full Code Here

        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();
    assertTrue(checker.check(model));   
View Full Code Here

            method(PUBLIC, "java.lang.String", "toString", new String[]{}),
            method(PROTECTED, "java.lang.Object", "clone", 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();
    assertTrue(checker.check(model));   
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.