Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

1. Declare an annotation type 'ClassInfo'

It should contain information about:

  • author of the class

  • revision of the class (by default it should be 1)

  • should the class be 'checked' (by default it should be) //this 'checked' thing is a bogus one, I just made it up so you can use a boolean default

  • an array of 'related' classes (Class<?>[])

  • Annotatate a class with this annotation. Fill in the 'required' information

  • In a main method, instantiate the annotated class. Using the getClass().getAnnotations(), print out all the annotations declared for your annotated class.

  • Now fetch your own annotation using yourInstance.getClass().getAnnotation(YourAnnotationName.class);

  • Print out all the filled information

2. JUnit

Write an implementation of JUnit framework yourself