[forge-dev] get shell output in a test

Rafael Pestano rmpestano at gmail.com
Tue Jan 28 17:14:34 EST 2014


thanks George, that just works!


2014/1/28 George Gastaldi <ggastald at redhat.com>

>  Hi Rafael,
>
> Here is an example on how to get the shell output:
>
> in Forge 2.x:
> https://github.com/forge/core/blob/2.0/shell/tests/src/test/java/org/jboss/forge/addon/shell/command/LsCommandTest.java
> in Forge 1.x:
> https://github.com/forge/core/blob/master/dev-plugins/src/test/java/org/jboss/forge/dev/PluginsPluginTest.java#L35
>
> Hope it helps,
>
> George Gastaldi
>
>
> On 28-01-2014 10:34, Rafael Pestano wrote:
>
>  Hi George,
>
>  1.x,
> i'll migrate to 2.x in next days so the answer is both
>
>
>
> 2014/1/28 George Gastaldi <ggastald at redhat.com>
>
>>  Hi Rafael,
>>
>>  Which Forge version are you using?
>>
>> Em 28/01/2014, às 10:19, Rafael Pestano <rmpestano at gmail.com> escreveu:
>>
>>      Hi everyone,
>>
>>  how can i get shell output after executing a command?
>>
>>  eg: i have a plugin that count lines of files, in my test i expect the
>> command to print 200 so id like to assertEquals that value. Something like
>> calling queueInputLines after executing a command to get its output
>>
>>
>>   thanks in advance.
>>
>> --
>>  <http://www.advancedit.com.br/>Att,
>>
>> Rafael M. Pestano
>>
>> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>> Graduando em Ciência da Computação UFRGS
>> http://conventionsframework.org <http://conventions.github.io/home/>
>>  http://rpestano.wordpress.com/
>> @realpestano
>>
>>   _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>>
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>
>
>
> --
>  <http://www.advancedit.com.br/>Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ciência da Computação UFRGS
> http://conventionsframework.org <http://conventions.github.io/home/>
>  http://rpestano.wordpress.com/
> @realpestano
>
>
> _______________________________________________
> forge-dev mailing listforge-dev at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/forge-dev
>
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>



-- 
<http://www.advancedit.com.br/>Att,

Rafael M. Pestano

Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciência da Computação UFRGS
http://conventionsframework.org <http://conventions.github.io/home/>
http://rpestano.wordpress.com/
@realpestano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20140128/ed9f76ac/attachment.html 


More information about the forge-dev mailing list