ActorsPackageDescriptionImpl implements ActorsPackageDescription { @Override public boolean validate() { return mErrors.isEmpty(); } ActorsPackageDescriptionImpl(@NotNull Element element); @Override boolean validate(); @Override void describeProblems(@NotNull List<GenerationError> errors); @NotNull @Override String getPackageName(); @NotNull @Override String getBuilderClassName(); @NotNull @Override ActorsPackage.AccessLevel getAccessLevel();  }
@Test public void validate_false_notPackage() { Mockito.doReturn(ElementKind.INTERFACE).when(mElement).getKind(); ActorsPackageDescriptionImpl impl = new ActorsPackageDescriptionImpl(mElement); Assert.assertEquals(false, impl.validate()); }
@Test public void validate_true_package() { ActorsPackageDescriptionImpl impl = new ActorsPackageDescriptionImpl(mElement); Assert.assertEquals(true, impl.validate()); }