Package org.jreversepro.ast.expression

Source Code of org.jreversepro.ast.expression.MethodAccessExpressionTest

package org.jreversepro.ast.expression;

import java.util.ArrayList;
import java.util.List;

import junit.framework.Assert;

import org.jreversepro.ast.expression.Constant;
import org.jreversepro.ast.expression.Expression;
import org.jreversepro.ast.expression.MethodAccessExpression;
import org.jreversepro.ast.expression.StaticMethodAccessExpression;
import org.junit.Test;

public class MethodAccessExpressionTest {

  @Test
  public void testSerializedArgs() {
    MethodAccessExpression mex;
   
    Expression exp1 = new Constant(4);
    Expression exp2 = new Constant(6);
   
    List<Expression> args = new ArrayList<Expression>();
    args.add(exp1);
    args.add(exp2);
   
    mex = new StaticMethodAccessExpression(null, null, null, args) ;
   
    Assert.assertEquals("(4, 6)", mex.serializedArgs());
  }
}
TOP

Related Classes of org.jreversepro.ast.expression.MethodAccessExpressionTest

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.