commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <khmarba...@gmx.de>
Subject [CLI2] Writing source code unit tests (CvsTest)
Date Tue, 31 Jul 2007 21:30:29 GMT
Hi there,

i have begun to write some Unit Tests (CvsTest in the Source-Code) to
understand the CLI2 correctly but now i have reached a point where i
can't get out....

May be someone can give me hint:

Ok.

I would like to simulate the following command line of CVS:

cvs -d "Parameter" -nq update -d

The "-nq" global options are working, but the second "-d" seemed not to be.
Here extracted some parts of the Code to create the command and it's
options:

//Global option
optiond = new DefaultOptionBuilder()
    .withName("d")
    .withArgument(new ArgumentBuilder()
    .withName("CVS_ROOT").create())
    .create();

updateCommand = new CommandBuilder().withName("update").create();
//update Command - Options
updateOptiond = new DefaultOptionBuilder().withName("d").create();

Group updateCommandOptions = GroupBuilder()
   .withName("Update-Options")
   .withOption(optionUpdated)
   .withOption(updateCommand)
   .create();

I'm not sure if i'm doing this correct...

Kind regards
Karl Heinz Marbaise
-- 
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 W├╝rselen                           http://www.soebes.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message