Package gov.nasa.jpf.jvm

Examples of gov.nasa.jpf.jvm.MethodInfo


  }
 
  @Test
  public void testNotEqual3() {
    ClassInfo c1 = cls("java.lang.String");
    MethodInfo m1 = method(c1, PUBLIC, "java.lang.String", "substring", new String[]{"int"});
    MethodInfo m2 = method(c1, PUBLIC, "java.lang.String", "substring", new String[]{"int", "int"});
    assertTrue(new MethodInfoComparator().compare(m1, m2) != 0);
  }
View Full Code Here


      String returnType,
      String name,
      String[] arguments
      )
  {
    MethodInfo mi = createMock(MethodInfo.class);
    expect(mi.getClassInfo()).andReturn(classInfo).anyTimes();
    expect(mi.getModifiers()).andReturn(modifiers).anyTimes();
    expect(mi.getName()).andReturn(name).anyTimes();
    expect(mi.getReturnType()).andReturn(returnType).anyTimes();
    expect(mi.getArgumentTypeNames()).andReturn(arguments).anyTimes();
   
    expect(mi.isPrivate()).andReturn(Modifier.isPrivate(modifiers)).anyTimes();
    expect(mi.isProtected()).andReturn(Modifier.isProtected(modifiers)).anyTimes();
    expect(mi.isPublic()).andReturn(Modifier.isPublic(modifiers)).anyTimes();
   
    replay(mi);
    return mi;
  }
View Full Code Here

      String returnType,
      String name,
      String[] arguments
      )
  {
    MethodInfo mi = createMock(MethodInfo.class);
    expect(mi.getModifiers()).andReturn(modifiers).anyTimes();
    expect(mi.getReturnType()).andReturn(returnType).anyTimes();
    expect(mi.getName()).andReturn(name).anyTimes();
    expect(mi.getArgumentTypeNames()).andReturn(arguments).anyTimes();
   
    expect(mi.isPrivate()).andReturn(Modifier.isPrivate(modifiers)).anyTimes();
    expect(mi.isProtected()).andReturn(Modifier.isProtected(modifiers)).anyTimes();
    expect(mi.isPublic()).andReturn(Modifier.isPublic(modifiers)).anyTimes();
   
    return mi;
  }
View Full Code Here

TOP

Related Classes of gov.nasa.jpf.jvm.MethodInfo

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.