@@ -0,0 +1,2211 @@
+package org.simpleframework.xml.core;%0A%0Aimport java.io.StringWriter;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.simpleframework.xml.Attribute;%0Aimport org.simpleframework.xml.Root;%0Aimport org.simpleframework.xml.Serializer;%0Aimport org.simpleframework.xml.Text;%0Aimport org.simpleframework.xml.transform.Matcher;%0Aimport org.simpleframework.xml.transform.Transform;%0A%0Apublic class TextConstructorInjectionWithTransformTest extends TestCase %7B%0A   %0A   private static class DateTime %7B%0A      private String time;%0A      public DateTime(String time) %7B%0A         this.time = time;%0A      %7D%0A      public String getTime() %7B%0A         return time;%0A      %7D%0A      public String toString() %7B%0A         return time;%0A      %7D%0A   %7D%0A   %0A   private static class DateTimeTransform implements Transform%3CDateTime%3E %7B%0A      public DateTime read(String text) throws Exception %7B%0A          return new DateTime(text);%0A      %7D%0A      public String write(DateTime value) throws Exception %7B%0A          return value.getTime();%0A      %7D%0A   %7D%0A   %0A   public class DateTimeMatcher implements Matcher %7B%0A      public Transform match(Class type) throws Exception %7B%0A         if(type == DateTime.class) %7B%0A            return new DateTimeTransform();%0A         %7D%0A         return null;%0A      %7D%0A   %7D%0A   %0A   @Root%0A   public static class Embargo %7B%0A      @Attribute%0A      private String name;%0A      @Text%0A      private DateTime embargo_datetime;%0A      public Embargo(@Text DateTime embargo_datetime, @Attribute(name=%22name%22) String name) %7B%0A          this.embargo_datetime = embargo_datetime;%0A          this.name = name;%0A      %7D%0A      public DateTime getEmbargo() %7B%0A          return embargo_datetime;%0A      %7D%0A      public void setEmbargo(DateTime embargo_datetime) %7B%0A          this.embargo_datetime = embargo_datetime;%0A      %7D%0A  %7D%0A    %0A   public void testConstructor() throws Exception %7B%0A      Embargo embargo = new Embargo(new DateTime(%222010-06-02T12:00:12%22), %22cuba%22);%0A      Serializer serializer = new Persister(new DateTimeMatcher());      %0A      StringWriter writer = new StringWriter();%0A      %0A      serializer.write(embargo, writer);%0A%0A      Embargo embargoout = serializer.read(Embargo.class, writer.toString());%0A%0A      System.out.println(writer.toString());%0A   %7D%0A%0A%7D%0A

Add test for @Text injection