From 0fe15e2cd736188c474bce38617f14552fc46c0d Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Mon, 21 Jul 2008 13:18:37 +0000 Subject: [PATCH] toString --- .../springframework/webflow/test/MockViewFactoryCreator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/test/MockViewFactoryCreator.java b/spring-webflow/src/main/java/org/springframework/webflow/test/MockViewFactoryCreator.java index a17e3c1b..b77c1cdc 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/test/MockViewFactoryCreator.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/test/MockViewFactoryCreator.java @@ -20,6 +20,7 @@ import java.io.IOException; import org.springframework.binding.convert.ConversionService; import org.springframework.binding.expression.Expression; import org.springframework.binding.expression.ExpressionParser; +import org.springframework.core.style.ToStringCreator; import org.springframework.webflow.engine.builder.ViewFactoryCreator; import org.springframework.webflow.execution.Event; import org.springframework.webflow.execution.RequestContext; @@ -108,5 +109,9 @@ class MockViewFactoryCreator implements ViewFactoryCreator { public void render() throws IOException { context.getExternalContext().getResponseWriter().write(viewId); } + + public String toString() { + return new ToStringCreator(this).append("viewId", viewId).toString(); + } } } \ No newline at end of file