Direkt zum Hauptbereich

Project Manager's Developer API

Sometimes I get the feeling, that all a project manager wants is this API:

Kommentare

Beliebte Posts aus diesem Blog

JUnit testing services and clients with javax.xml.ws.Endpoint

Following situation: you have written some generic stub to use in your projects that creates a client for a service. Your client is smart and does some magic for connections (proxy, cache or other kind of magic). Or maybe you just have written a service for that matter. Anyway, you now want to test it. Unit testing the functionality of your methods is a must. But you still want to reach 100% coverage and need to test the service as it would run in real life.
Then you can use the javax.xml.ws.Endpoint class.
If you prefer figuring it out yourself, you can find the code (as a project for netbeans) --here--
To follow the code examples as html click  --here--

So here is how you do it:

If you've coded nothing fancy, then you probably have a class like this:



This is a generic client for opening connections to services. It gives you back a port of the type of your service where you can call your operation as a method of the port. It is very convenient if you have to do some nasty network-conne…

12 steps for software development

We admitted we were powerless over planing—that our time had become unmanageable. Came to believe that a Power greater than ourselves could restore us to sanity. Made a decision to turn our will and our lives over to the care of The Team. Made a searching and fearless moral inventory of ourselves. Admitted to The Team, and to managers the exact nature of our wrongs. Were entirely ready to have The Team remove all these defects of character. Humbly asked The Team to remove our shortcomings. Made a list of all projects we had harmed, and became willing to fix them all. Made direct bug fixes to such projects wherever possible, except when to do so would injure them or others. Continued to take personal inventory and when we were wrong promptly admitted it. Sought through code review and automation to improve our conscious contact with The Team, committing only tested features. Having had a spiritual awakening as the result of these steps, we tried to carry this message to other developer…

male death rates and hot pants