@@ -0,0 +1,1520 @@
+package com.five35.dex;%0A%0Aimport mockit.Expectations;%0Aimport mockit.Mocked;%0Aimport mockit.NonStrictExpectations;%0Aimport mockit.Tested;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A@SuppressWarnings(%7B %22javadoc%22, %22unused%22 %7D)%0Apublic class InfixSymbolTest %7B%0A%09private static class DummySymbol extends InfixSymbol %7B%0A%09%09DummySymbol() %7B%0A%09%09%09super(%22DUMMY%22, %22(dummy)%22, -535);%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09Result binary(final Result left, final Result right) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%0A%09@Tested%0A%09InfixSymbolTest.DummySymbol infixSymbol;%0A%0A%09@Test%0A%09public void getLeftDenotation_getsExpression(@Mocked final Parser parser, @Mocked final Expression left, @Mocked final Expression right) throws Exception %7B%0A%09%09new Expectations() %7B%0A%09%09%09%7B%0A%09%09%09%09parser.getExpression(-535);%0A%09%09%09%09this.result = right;%0A%09%09%09%7D%0A%09%09%7D;%0A%0A%09%09this.infixSymbol.getLeftDenotation(parser, left);%0A%09%7D%0A%0A%09@Test%0A%09public void getLeftDenotation_returnsBinaryExpression(@Mocked final Parser parser, @Mocked final Expression left, @Mocked final Expression right) throws Exception %7B%0A%09%09new NonStrictExpectations() %7B%0A%09%09%09%7B%0A%09%09%09%09parser.getExpression(this.anyInt);%0A%09%09%09%09this.result = right;%0A%09%09%09%7D%0A%09%09%7D;%0A%0A%09%09Assert.assertTrue(this.infixSymbol.getLeftDenotation(parser, left) instanceof BinaryExpression);%0A%09%7D%0A%0A%09@Test(expected = SyntaxException.class)%0A%09public void getNullDenotation_throws(@Mocked final Parser parser) throws Exception %7B%0A%09%09new NonStrictExpectations() %7B%0A%09%09%09%7B%0A%09%09%09%09parser.getCurrentToken();%0A%09%09%09%09this.result = new Token(1, %22(dummy)%22);%0A%09%09%09%7D%0A%09%09%7D;%0A%0A%09%09this.infixSymbol.getNullDenotation(parser);%0A%09%7D%0A%7D%0A

add tests for InfixSymbol