--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/P1tgQVUBD8kJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
Hi, yes you are right but it has been fixed in trunk.
On 17 avr. 2012, at 13:53, Mikael Selander <cid...@gmail.com> wrote:
Am I correct in assuming that code in the "test"-directory is not enhanced in the same way that code in the "app"-directory is enhanced? I've been having some issues with Ebean not being able to detect dirty entities in my unit-tests. For example:Entity e = Entity.getById(1L);e.name = "Foo";e.save();assertThat(Entity.getById(1L).name).isEqualTo("Foo"); // FailsHowever, if I directly call the magically added e.setName("Foo"), which makes IntelliJ really confused btw :), everything works as expected.Would it be possible to turn on enhancement in the "test" directory as well? Maybe by an argument in the console or a config value if having it on by default messes with other stuff.--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/P1tgQVUBD8kJ.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
Hi, yes you are right but it has been fixed in trunk.
On 17 avr. 2012, at 13:53, Mikael Selander <cid...@gmail.com> wrote:
Am I correct in assuming that code in the "test"-directory is not enhanced in the same way that code in the "app"-directory is enhanced? I've been having some issues with Ebean not being able to detect dirty entities in my unit-tests. For example:Entity e = Entity.getById(1L);e.name = "Foo";e.save();assertThat(Entity.getById(1L).name).isEqualTo("Foo"); // FailsHowever, if I directly call the magically added e.setName("Foo"), which makes IntelliJ really confused btw :), everything works as expected.Would it be possible to turn on enhancement in the "test" directory as well? Maybe by an argument in the console or a config value if having it on by default messes with other stuff.--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/P1tgQVUBD8kJ.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
Hi, yes you are right but it has been fixed in trunk.
On 17 avr. 2012, at 13:53, Mikael Selander <cid...@gmail.com> wrote:
Am I correct in assuming that code in the "test"-directory is not enhanced in the same way that code in the "app"-directory is enhanced? I've been having some issues with Ebean not being able to detect dirty entities in my unit-tests. For example:Entity e = Entity.getById(1L);e.name = "Foo";e.save();assertThat(Entity.getById(1L).name).isEqualTo("Foo"); // FailsHowever, if I directly call the magically added e.setName("Foo"), which makes IntelliJ really confused btw :), everything works as expected.Would it be possible to turn on enhancement in the "test" directory as well? Maybe by an argument in the console or a config value if having it on by default messes with other stuff.--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/P1tgQVUBD8kJ.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
And also, after looking through the commit that allows it to be enabled, I can't really say that I understand how to enable it. Do I need to add an extra parameter to play compile?
Den tisdagen den 17:e april 2012 kl. 16:19:39 UTC+2 skrev Guillaume Bort:
Hi, yes you are right but it has been fixed in trunk.
On 17 avr. 2012, at 13:53, Mikael Selander <cid...@gmail.com> wrote:
Am I correct in assuming that code in the "test"-directory is not enhanced in the same way that code in the "app"-directory is enhanced? I've been having some issues with Ebean not being able to detect dirty entities in my unit-tests. For example:Entity e = Entity.getById(1L);e.name = "Foo";e.save();assertThat(Entity.getById(1L).name).isEqualTo("Foo"); // FailsHowever, if I directly call the magically added e.setName("Foo"), which makes IntelliJ really confused btw :), everything works as expected.Would it be possible to turn on enhancement in the "test" directory as well? Maybe by an argument in the console or a config value if having it on by default messes with other stuff.--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/P1tgQVUBD8kJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
Den tisdagen den 17:e april 2012 kl. 16:19:39 UTC+2 skrev Guillaume Bort:
Hi, yes you are right but it has been fixed in trunk.
On 17 avr. 2012, at 13:53, Mikael Selander <cid...@gmail.com> wrote:
Am I correct in assuming that code in the "test"-directory is not enhanced in the same way that code in the "app"-directory is enhanced? I've been having some issues with Ebean not being able to detect dirty entities in my unit-tests. For example:Entity e = Entity.getById(1L);e.name = "Foo";e.save();assertThat(Entity.getById(1L).name).isEqualTo("Foo"); // FailsHowever, if I directly call the magically added e.setName("Foo"), which makes IntelliJ really confused btw :), everything works as expected.Would it be possible to turn on enhancement in the "test" directory as well? Maybe by an argument in the console or a config value if having it on by default messes with other stuff.--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/P1tgQVUBD8kJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/A3YNH11lE_gJ.
To post to this group, send email to play-f...@googlegroups.com.
To unsubscribe from this group, send email to play-framewo...@googlegroups.com.