Skip to content

Commit

Permalink
unit test optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
astrapi69 committed Aug 10, 2018
1 parent a172670 commit 49c6b2e
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,18 @@ public void testMergeToContextVelocityEngineVelocityContextStringString() throws
public void testMergeToContextVelocityEngineVelocityContextStringStringStringString()
throws IOException
{
String expected;
String actual;
String expected;

final String fileName = "test.txt";
final VelocityEngine engine = new VelocityEngine();
engine.init();
final VelocityContext context = VelocityExtensions.newVelocityContext();
VelocityEngine engine;
String fileName;
VelocityContext context;
File generatedClassFile;

fileName = "test.txt";
engine = new VelocityEngine();
engine.init();
context = VelocityExtensions.newVelocityContext();
generatedClassFile = new File(fileName);

context.put("name", "Velocity");
Expand Down

0 comments on commit 49c6b2e

Please sign in to comment.