From 2db4fbd0d5ef9eec0d9b406acc6a5102bf3867f0 Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de> Date: Thu, 30 Apr 2015 17:30:54 +0200 Subject: [PATCH] refactored variable name --- src/site/markdown/wiki | 2 +- .../teetime/framework/pipe/SpScPipeTest.java | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/site/markdown/wiki b/src/site/markdown/wiki index 0e447457..b20be685 160000 --- a/src/site/markdown/wiki +++ b/src/site/markdown/wiki @@ -1 +1 @@ -Subproject commit 0e4474577e1f49bc96e734c286b2d9e0363895e8 +Subproject commit b20be6858bdfa41c8a928c157064c4efa0614069 diff --git a/src/test/java/teetime/framework/pipe/SpScPipeTest.java b/src/test/java/teetime/framework/pipe/SpScPipeTest.java index dee9b9b3..37c2e964 100644 --- a/src/test/java/teetime/framework/pipe/SpScPipeTest.java +++ b/src/test/java/teetime/framework/pipe/SpScPipeTest.java @@ -40,28 +40,28 @@ public class SpScPipeTest { InputPort<Object> targetPort = null; AbstractInterThreadPipe pipe = new SpScPipe(sourcePort, targetPort, 1); // IPipe does not provide getSignal method - List<ISignal> list = new ArrayList<ISignal>(); - list.add(new StartingSignal()); - list.add(new TerminatingSignal()); - list.add(new ValidatingSignal()); - list.add(new StartingSignal()); - list.add(new TerminatingSignal()); - list.add(new ValidatingSignal()); - list.add(new StartingSignal()); - list.add(new TerminatingSignal()); - list.add(new ValidatingSignal()); + List<ISignal> signals = new ArrayList<ISignal>(); + signals.add(new StartingSignal()); + signals.add(new TerminatingSignal()); + signals.add(new ValidatingSignal()); + signals.add(new StartingSignal()); + signals.add(new TerminatingSignal()); + signals.add(new ValidatingSignal()); + signals.add(new StartingSignal()); + signals.add(new TerminatingSignal()); + signals.add(new ValidatingSignal()); - for (ISignal s : list) { + for (ISignal s : signals) { pipe.sendSignal(s); } - List<ISignal> secondList = new ArrayList<ISignal>(); + List<ISignal> secondSignals = new ArrayList<ISignal>(); while (true) { ISignal temp = pipe.getSignal(); if (temp == null) { break; } - secondList.add(temp); + secondSignals.add(temp); } // Assert.assertEquals(list, secondList); } -- GitLab