From: David ‘Bombe’ Roden Date: Tue, 25 Nov 2014 20:27:23 +0000 (+0100) Subject: Add convenience method to create test values. X-Git-Tag: 0.9-rc1^2~3^2~14 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b5e02b755778a6d24fee5419a1c697a1e2581471;p=Sone.git Add convenience method to create test values. --- 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); + } + }