You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2016/04/24 22:48:59 UTC

[2/2] wicket git commit: Give a better name for the variable used as a second parameter for #mapWith() tests

Give a better name for the variable used as a second parameter for #mapWith() tests


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/e0d962bd
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e0d962bd
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e0d962bd

Branch: refs/heads/master
Commit: e0d962bd5d32c63403dc775b80a4022fce511679
Parents: e83d6b6
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Sun Apr 24 22:48:16 2016 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Sun Apr 24 22:48:16 2016 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/wicket/model/IModelTest.java   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/e0d962bd/wicket-core/src/test/java/org/apache/wicket/model/IModelTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/model/IModelTest.java b/wicket-core/src/test/java/org/apache/wicket/model/IModelTest.java
index 1394253..996a758 100644
--- a/wicket-core/src/test/java/org/apache/wicket/model/IModelTest.java
+++ b/wicket-core/src/test/java/org/apache/wicket/model/IModelTest.java
@@ -87,8 +87,8 @@ public class IModelTest extends Assert
 	{
 		IModel<String> janeModel = IModel.of("Jane");
 		WicketBiFunction<Person, String, String> function =
-				(WicketBiFunction<Person, String, String>) (person1, nth) ->
-						person1.getName() + " is in relationship with " + nth;
+				(WicketBiFunction<Person, String, String>) (person1, other) ->
+						person1.getName() + " is in relationship with " + other;
 		IModel<String> relationShipModel = IModel.of(person).mapWith(function, janeModel);
 		assertThat(relationShipModel.getObject(), is(equalTo("John is in relationship with Jane")));
 	}
@@ -98,8 +98,8 @@ public class IModelTest extends Assert
 	{
 		IModel<String> janeModel = IModel.of(null);
 		WicketBiFunction<Person, String, String> function =
-				(WicketBiFunction<Person, String, String>) (person1, nth) ->
-						person1.getName() + " is in relationship with " + nth;
+				(WicketBiFunction<Person, String, String>) (person1, other) ->
+						person1.getName() + " is in relationship with " + other;
 		IModel<String> relationShipModel = IModel.of(person).mapWith(function, janeModel);
 		assertThat(relationShipModel.getObject(), is(nullValue()));
 	}
@@ -109,8 +109,8 @@ public class IModelTest extends Assert
 	{
 		IModel<String> janeModel = null;
 		WicketBiFunction<Person, String, String> function =
-				(WicketBiFunction<Person, String, String>) (person1, nth) ->
-						person1.getName() + " is in relationship with " + nth;
+				(WicketBiFunction<Person, String, String>) (person1, other) ->
+						person1.getName() + " is in relationship with " + other;
 		IModel<String> relationShipModel = IModel.of(person).mapWith(function, janeModel);
 		assertThat(relationShipModel.getObject(), is(nullValue()));
 	}