Annotations/Decorators Flashcards

1
Q

@Ignore

A

JUnit, ignore test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

@Before

A

JUnit, execute before each test method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

@BeforeClass

A

JUnit, before running all tests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

@Test

A

JUnit, test this method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

@AfterClass

A

JUnit, execute after all tests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

@After

A

JUnit, execute after each test method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

@Injectable

A

decorator for angular, dependency injection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

@NgModule

A

decorator for angular, declaring a module (similar to class in Java)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

@Component

A

decorator for angular, put before component

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

@WebServlet(urlPatterns=”/name”)

A

Java, “talk” to servlet using url parameter, annotated above class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

annotation

A

Java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly