Package org.springsource.loaded.test.infra

Examples of org.springsource.loaded.test.infra.FakeMethodVisitor.clearEvents()


    Utils.insertBoxInsns(fmv, 'Z');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Boolean,valueOf,(Z)Ljava/lang/Boolean;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'S');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Short,valueOf,(S)Ljava/lang/Short;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'J');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Long,valueOf,(J)Ljava/lang/Long;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'D');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Double,valueOf,(D)Ljava/lang/Double;)", fmv.getEvents());
View Full Code Here


    Utils.insertBoxInsns(fmv, 'S');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Short,valueOf,(S)Ljava/lang/Short;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'J');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Long,valueOf,(J)Ljava/lang/Long;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'D');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Double,valueOf,(D)Ljava/lang/Double;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'C');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Character,valueOf,(C)Ljava/lang/Character;)", fmv.getEvents());
View Full Code Here

    Utils.insertBoxInsns(fmv, 'J');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Long,valueOf,(J)Ljava/lang/Long;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'D');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Double,valueOf,(D)Ljava/lang/Double;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'C');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Character,valueOf,(C)Ljava/lang/Character;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'B');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Byte,valueOf,(B)Ljava/lang/Byte;)", fmv.getEvents());
View Full Code Here

    Utils.insertBoxInsns(fmv, 'D');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Double,valueOf,(D)Ljava/lang/Double;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'C');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Character,valueOf,(C)Ljava/lang/Character;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'B');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Byte,valueOf,(B)Ljava/lang/Byte;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'I');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Integer,valueOf,(I)Ljava/lang/Integer;)", fmv.getEvents());
View Full Code Here

    Utils.insertBoxInsns(fmv, 'C');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Character,valueOf,(C)Ljava/lang/Character;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'B');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Byte,valueOf,(B)Ljava/lang/Byte;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'I');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Integer,valueOf,(I)Ljava/lang/Integer;)", fmv.getEvents());
    fmv.clearEvents();
  }
View Full Code Here

    Utils.insertBoxInsns(fmv, 'B');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Byte,valueOf,(B)Ljava/lang/Byte;)", fmv.getEvents());
    fmv.clearEvents();
    Utils.insertBoxInsns(fmv, 'I');
    assertEquals("visitMethodInsn(INVOKESTATIC,java/lang/Integer,valueOf,(I)Ljava/lang/Integer;)", fmv.getEvents());
    fmv.clearEvents();
  }

  @Test
  public void loads() {
    FakeMethodVisitor fmv = new FakeMethodVisitor();
View Full Code Here

  @Test
  public void loads() {
    FakeMethodVisitor fmv = new FakeMethodVisitor();
    Utils.createLoadsBasedOnDescriptor(fmv, "(Ljava/lang/String;)V", 0);
    assertEquals("visitVarInsn(ALOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(B)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(C)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
View Full Code Here

    Utils.createLoadsBasedOnDescriptor(fmv, "(Ljava/lang/String;)V", 0);
    assertEquals("visitVarInsn(ALOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(B)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(C)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(D)V", 0);
    assertEquals("visitVarInsn(DLOAD,0)", fmv.getEvents());
View Full Code Here

    Utils.createLoadsBasedOnDescriptor(fmv, "(B)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(C)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(D)V", 0);
    assertEquals("visitVarInsn(DLOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(Z)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
View Full Code Here

    Utils.createLoadsBasedOnDescriptor(fmv, "(C)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(D)V", 0);
    assertEquals("visitVarInsn(DLOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(Z)V", 0);
    assertEquals("visitVarInsn(ILOAD,0)", fmv.getEvents());
    fmv.clearEvents();
    Utils.createLoadsBasedOnDescriptor(fmv, "(J)V", 0);
    assertEquals("visitVarInsn(LLOAD,0)", fmv.getEvents());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.