Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Annotations Writing Your Own Annotation Putting It All Together

why Test.class passes but why not when writing socialNetwokTest.class doesnt allow me to pass???

why Test.class passes but why not when writing socialNetwokTest.class doesnt allow me to pass???

Test.java

SocialNetworkTest.java
public class SocialNetworkTest {
  public void testTweet() {

  }

  public void testInsta() { 

  }

  public void testFacebook() { 

  }

  public void testPinterest() { 

  }

  public void testSnapchat() { 

  }
}
TestAnalyzer.java
public class TestAnalyzer {
  /**
   *  Counts the number of methods in the class given by `clazz` that have been annotated
   *  with the @Test annotation.
   */
  public static int getNumAnnotatedMethods(Class<?> clazz) {
    return 0;  
  }
}
Boban Talevski
Boban Talevski
24,793 Points

Can you explain the question a bit more, what passes when and what step of the challenge are you referring to? And post the code that you are trying to submit, the code you posted is given as a starting point.