import org.apache.isis.core.metamodel.facets.param.describedas.annotderived.DescribedAsFacetOnParameterAnnotationElseDerivedFromTypeFactory;
public class DescribedAsAnnotationFacetFactoryTest extends AbstractFacetFactoryTest {
public void testDescribedAsAnnotationPickedUpOnClass() {
final DescribedAsFacetOnTypeAnnotationFactory facetFactory = new DescribedAsFacetOnTypeAnnotationFactory();
@DescribedAs("some description")
class Customer {
}
facetFactory.process(new ProcessClassContext(Customer.class, null, methodRemover, facetedMethod));
final Facet facet = facetedMethod.getFacet(DescribedAsFacet.class);
assertNotNull(facet);
assertTrue(facet instanceof DescribedAsFacetAbstract);
final DescribedAsFacetAbstract describedAsFacetAbstract = (DescribedAsFacetAbstract) facet;