rhbz1110627 zanata init

https://bugzilla.redhat.com/show_bug.cgi?id=1110627
and https://bugzilla.redhat.com/show_bug.cgi?id=1038852

Depends on https://github.com/zanata/zanata-api/pull/15 and https://github.com/zanata/zanata-server/pull/520
Array does not have meaningful toString implementation. You will just get an array type with memory address. Arrays.toString() utility method will print all elements inside it. 

----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-client" <zanata-client@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Friday, July 18, 2014 5:22:41 PM
> Subject: Re: [zanata-client] rhbz1110627 zanata init (#27)

> In
> zanata-client-commands/src/test/java/org/zanata/client/commands/MockConsoleInteractiveable.java:
> > +
> > +    @Override
> > +    public void expectYes() {
> > +        log.debug("expecting yes");
> > +        simulateUserInput();
> > +    }
> > +
> > +    @Override
> > +    public String expectAnswer(String... expectedAnswers) {
> > +        log.debug("** expected answers: {}",
> > Arrays.toString(expectedAnswers));
> > +        return simulateUserInput();
> > +    }
> > +
> > +    @Override
> > +    public String expectAnswerWithRetry(List<String> expectedAnswers) {
> > +        log.debug("** expected answers: {}", expectedAnswers);

> Why does this debug logging just have expectedAnswers , but the similar one
> above has Arrays.toString(expectedAnswers) ? I would expect both to be the
> same.

> —
> Reply to this email directly or view it on GitHub .