From b5e02b755778a6d24fee5419a1c697a1e2581471 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 25 Nov 2014 21:27:23 +0100 Subject: [PATCH] Add convenience method to create test values. --- src/test/java/net/pterodactylus/sone/TestValue.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/net/pterodactylus/sone/TestValue.java b/src/test/java/net/pterodactylus/sone/TestValue.java index dd923d3..43cf0a6 100644 --- a/src/test/java/net/pterodactylus/sone/TestValue.java +++ b/src/test/java/net/pterodactylus/sone/TestValue.java @@ -52,4 +52,8 @@ public class TestValue implements Value { return String.valueOf(value.get()); } + public static Value from(T value) { + return new TestValue(value); + } + } -- 2.7.4