Venkata Krishnan wrote:
Hi,
I whole-heartedly admit to the comfort of being able to run and debug
within
IDE. Its really very useful to get a grasp of how the runtime works.
For
example, if one were to understand the role of loaders, builders, the
wire
service and the invocation pattern, running a sample test or an iTest
from
within an IDE and debugging it gives a real fair idea of all of this.
Raymond thanks and I hope to check this out later during the day.
- Venkat
On 3/28/07, Raymond Feng <[EMAIL PROTECTED]> wrote:
Hi,
I know we have removed SCATestCase from the trunk, but I always find it
very
useful and convenient for me to run test cases or samples from inside
the
IDE directly (by right-clicking on the class and select "Run..." or
"Debug"), especially for debugging and testing purposes.
I put together a simple "embedded runtime" based on the idea of
SCATestCase
so that we can bootstrap Tuscany system and the application code from
the
same classpath in case that class isolations are not of interest. It's
built
on top of the current kernel in trunk.
You can find the code at
http://svn.apache.org/repos/asf/incubator/tuscany/sandbox/rfeng/runtime/embedded/
.
There are two things you can try:
* calculator.CalculatorClient is a sample with main()
* org.apache.tuscany.api.SCARuntimeTestCase is a JUNIT test case.
I think it can complement the other runtimes we have in trunk such as
standalone and itest. I would like to check it in under java/runtime if
you
agree with me.
Thanks,
Raymond
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I think it's very useful, and really easy to use.
Here are a few suggestions to improve your Calculator sample and the
test case:
- I think it would be good to rename application.composite to
<compositeName>.composite
- change the call to SCARuntime.start() to SCARuntime.start(<path to the
composite file>), as this version of the start method seems the most
useful to show
- and add test cases exercising the few variations of SCARuntime.start(...)
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]