mercredi 14 octobre 2015

@VisibleForTesting does not work as expected

I wanted to try the @VisibleForTesting annotation for a android unit-test - I have a class with one annotated method:

public class Foo {

  public void bar() {
  }

  @VisibleForTesting
  private void baz() {
  }
}

but in the unit-tests I still can only see bar - not baz

Aucun commentaire:

Enregistrer un commentaire