WOUnit

2012-04-18 Thread Ron X
hi everybody @Spy - not find in classpath dependency groupIdcom.wounit/groupId artifactIdwounit/artifactId version1.3-SNAPSHOT/version /dependency why? ___ Do not post admin requests to the list.

restoring session in servlet deployment context

2012-04-18 Thread Jérémy DE ROYER [INGENCYS]
Hello, We have APIs that use HTTP/GET or POST direct actions according to this scheme : - authenticate direct action - returning a sessionID - asking for a direct action with a sessionID - if authenticated, returning the response Problem is that it doesn't work with servlet deployment except if

Re: WOUnit

2012-04-18 Thread Ron X
What is the meaning of using @UnderTest? it can be omitted and using mock(entity). when i do confirm(song, canBeSaved()); - it falls with exception but when i do: mock(Song.class); and than do confirm(song, canBeSaved()); everything works fine 18 апреля 2012 г. 11:53 пользователь Ron X

Re: restoring session in servlet deployment context

2012-04-18 Thread Jérémy DE ROYER [INGENCYS]
For those who could have the same issue, here comes one answer : 1) get the jsessionid from the HttpSession used for authentication 2) send both wosid and jsessionid to the direct actions 3) restore HttpSession using an HttpSessionListener 4) restore WOSession using

Re: restoring session in servlet deployment context

2012-04-18 Thread Ruenagel, Frank
That's interesting. Normally the JSESSIONID is stored in a cookie. I guess in your special scenario cookies are disabled and so the tomcat always opens a new session in subsequent requests? Regards Frank -Ursprüngliche Nachricht- Von:

java.lang.ClassCastException: com.webobjects.eocontrol.EOGenericRecord cannot be cast to com.cariatides.noyau.modele.noyauppersonne.Personne

2012-04-18 Thread g.alexandre
hi, When i execute my test methods with java, i have : java.lang.ClassCastException: com.webobjects.eocontrol.EOGenericRecord cannot be cast to com.cariatides.noyau.modele.noyauppersonne.Personne But my class personne extends EOCustomObject so i don't know why i have this error. When i

Is there a 'propertyNameComponentName' equivalent in EXCEL look ?

2012-04-18 Thread James Cicenia
Repeat: Is there a 'propertyNameComponentName' equivalent in EXCEL look ? Thanks James ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your

Re: java.lang.ClassCastException: com.webobjects.eocontrol.EOGenericRecord cannot be cast to com.cariatides.noyau.modele.noyauppersonne.Personne

2012-04-18 Thread Pascal Robert
Bonjour G. Alexandre, I guess that you are getting the exception in the rechercherParNip method? And are you using Project Wonder? If yes, you can reduce the amount of code by using the Wonder methods and make your code more solid. If you are not using Wonder, you should. hi, When i

Re: WOUnit

2012-04-18 Thread Henrique Prange
Hi Ron, @Spy is a Mockito annotation. The Mockito dependency is optional. You have to add the dependency manually into your project's pom.xml. dependency groupIdorg.mockito/groupId artifactIdmockito-core/artifactId version1.9.0/version /dependency Additionally, I recommend to use

Re: WOUnit

2012-04-18 Thread Henrique Prange
Hi Ron, On 18/04/2012, at 08:06, Ron X wrote: What is the meaning of using @UnderTest? The @UnderTest annotation can be used to create real enterprise objects and insert them into the editing context rule. It is a shorthand for: public class SongTest { ... private Song song;

Re: WOUnit

2012-04-18 Thread Henrique Prange
Hi Ron, On 18/04/2012, at 13:06, Henrique Prange wrote: Hi Ron, On 18/04/2012, at 08:06, Ron X wrote: What is the meaning of using @UnderTest? The @UnderTest annotation can be used to create real enterprise objects and insert them into the editing context rule. It is a shorthand

Entity Modeler, attributes default value for migrations

2012-04-18 Thread Theodore Petrosky
When I create an attribute in Entity Modeler, and create the migrations, it does a beautiful job. creativeBriefTable.newFlagBooleanColumn(isfiled, false); and I know I can add a default value here creativeBriefTable.newFlagBooleanColumn(isfiled, false, false); problem is that if I go back and

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread John Huss
You have to add it manually into the userInfo dictionary by editing by model with a text editor. For example, for the ATTRIBUTE called deleted: ... { columnName = scp_deleted; name = deleted; prototypeName = intBoolean; *userInfo = {default

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread David Holt
Hi Ted, You can use EOF to set your values in migrations, so I guess you could set your default values in your entity? See Mike's example app SecretPal and the SecretPal0 migration postUpgrade method. That might give you what you are looking for. Also just recently someone (Ramsey?) posted

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread Theodore Petrosky
No not really, I create a model that has an attribute (an intBoolean) called isFiled. I ask Entity Modeler to create the migrations for me and it gives me: @Override public void upgrade(EOEditingContext editingContext, ERXMigrationDatabase database) throws Throwable {

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread John Huss
I was hoping there was a box in Entity Modeler that said, Default Value. There is no box, but if you hand-edit the file like I said it will do what you want. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread David Holt
Thanks John! Learn something every day :-) David On 2012-04-18, at 1:42 PM, John Huss wrote: I was hoping there was a box in Entity Modeler that said, Default Value. There is no box, but if you hand-edit the file like I said it will do what you want.

Re: restoring session in servlet deployment context

2012-04-18 Thread Jérémy DE ROYER [INGENCYS]
It is indeed not possible to use cookies because we are in a request/response scheme where every cycle is independent. wosid is the only link just use for authentication. Jérémy Le 18 avr. 2012 à 15:03, Ruenagel, Frank a écrit : That's interesting. Normally the JSESSIONID is stored in a

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread Chuck Hill
Hand edit? Eeew! :-P Select the property and then the User Info tab in the Properties inspector. Click where it says (0 items) and hit Enter. Edit the name and value. Chuck On 2012-04-18, at 1:07 PM, John Huss wrote: You have to add it manually into the userInfo dictionary by editing

Re: java.lang.ClassCastException: com.webobjects.eocontrol.EOGenericRecord cannot be cast to com.cariatides.noyau.modele.noyauppersonne.Personne

2012-04-18 Thread Alexis Tual
Hi, you should put the whole stacktrace in there. A note, your eos should inherits from EOGenericRecord (or better, ERXGenericRecord, use the templates from Wonder : http://wiki.wocommunity.org/display/WOL/EOGenerator+Templates+and+Additions) Alex 2012/4/19 g.alexandre g.alexan...@symaris.com

Re: java.lang.ClassCastException: com.webobjects.eocontrol.EOGenericRecord cannot be cast to com.cariatides.noyau.modele.noyauppersonne.Personne

2012-04-18 Thread Ramsey Gurley
EOCustomObject is EOGenericRecord's parent class. If your Personne extends EOCustomObject, then it's a sibling of EOGenericRecord, not a subclass. On Apr 18, 2012, at 7:24 AM, g.alexandre wrote: hi, When i execute my test methods with java, i have : java.lang.ClassCastException:

Re: Entity Modeler, attributes default value for migrations

2012-04-18 Thread Theodore Petrosky
that was so intuitive that I can not believe I didn't just stumble across it. It creates a little weird syntax. I was expecting: creativeBriefTable.newFlagBooleanColumn(isfiled, false, false); what i got was: creativeBriefTable.newFlagBooleanColumn(isfiled, false,