You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by af...@apache.org on 2015/11/14 00:13:42 UTC

incubator-reef git commit: [REEF-944] Fix typos in TestRuntimeStartHandler

Repository: incubator-reef
Updated Branches:
  refs/heads/master 9fedfbc09 -> 4decc2132


[REEF-944] Fix typos in TestRuntimeStartHandler

JIRA:
  [REEF-944](https://issues.apache.org/jira/browse/REEF-944)

Pull Request:
  Closes #638


Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/4decc213
Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/4decc213
Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/4decc213

Branch: refs/heads/master
Commit: 4decc2132eb2ccfca396fc5304175cd17fd8da5f
Parents: 9fedfbc
Author: Dongjoon Hyun <do...@apache.org>
Authored: Sat Nov 14 06:10:09 2015 +0900
Committer: Andrew Chung <af...@gmail.com>
Committed: Fri Nov 13 15:13:07 2015 -0800

----------------------------------------------------------------------
 .../apache/reef/webserver/TestRuntimeStartHandler.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/4decc213/lang/java/reef-webserver/src/test/java/org/apache/reef/webserver/TestRuntimeStartHandler.java
----------------------------------------------------------------------
diff --git a/lang/java/reef-webserver/src/test/java/org/apache/reef/webserver/TestRuntimeStartHandler.java b/lang/java/reef-webserver/src/test/java/org/apache/reef/webserver/TestRuntimeStartHandler.java
index b439902..311ca1e 100644
--- a/lang/java/reef-webserver/src/test/java/org/apache/reef/webserver/TestRuntimeStartHandler.java
+++ b/lang/java/reef-webserver/src/test/java/org/apache/reef/webserver/TestRuntimeStartHandler.java
@@ -44,11 +44,11 @@ import java.util.Set;
  */
 public class TestRuntimeStartHandler {
 
-  private Configuration configuation;
+  private Configuration configuration;
 
   @Before
   public void setUp() throws InjectionException, IOException, ServletException {
-    final Configuration clockConfiguraiton = HttpHandlerConfiguration.CONF
+    final Configuration clockConfiguration = HttpHandlerConfiguration.CONF
         .set(HttpHandlerConfiguration.HTTP_HANDLERS, HttpServerReefEventHandler.class)
         .build();
     final Configuration remoteConfiguration = Tang.Factory.getTang().newConfigurationBuilder()
@@ -56,20 +56,20 @@ public class TestRuntimeStartHandler {
         .bindNamedParameter(RemoteConfiguration.MessageCodec.class, REEFMessageCodec.class)
         .bindNamedParameter(JobIdentifier.class, "my job")
         .build();
-    this.configuation = Configurations.merge(clockConfiguraiton, remoteConfiguration);
+    this.configuration = Configurations.merge(clockConfiguration, remoteConfiguration);
   }
 
   /**
    * With HttpHandlerConfiguration merged with HttpRuntimeConfiguration and binding for http handlers,
    * when inject RuntimeClock.
-   * all the nested objects including HeetServer, JettyHandler, HttpRuntimeStartHandler and  HttpRuntimeStopHandler
+   * all the nested objects including HttpServer, JettyHandler, HttpRuntimeStartHandler and  HttpRuntimeStopHandler
    *
    * @throws BindException
    * @throws InjectionException
    */
   @Test
   public void testHttpHandlerBindingWithRuntimeClock() throws BindException, InjectionException {
-    final RuntimeClock clock = Tang.Factory.getTang().newInjector(this.configuation).getInstance(RuntimeClock.class);
+    final RuntimeClock clock = Tang.Factory.getTang().newInjector(this.configuration).getInstance(RuntimeClock.class);
     Assert.assertNotNull(clock);
   }
 
@@ -81,7 +81,7 @@ public class TestRuntimeStartHandler {
    */
   @Test
   public void testRunTimeStartStopHandler() throws BindException, InjectionException {
-    final Injector injector = Tang.Factory.getTang().newInjector(this.configuation);
+    final Injector injector = Tang.Factory.getTang().newInjector(this.configuration);
     final Set<EventHandler<RuntimeStart>> startEventHandlers =
         injector.getNamedInstance(RuntimeClock.RuntimeStartHandler.class);
     for (final EventHandler<RuntimeStart> eventHandler : startEventHandlers) {