JUnit Quiz

JUnit Quiz

KG

7 Qs

quiz-placeholder

Similar activities

PSP Week 5

PSP Week 5

University

10 Qs

Computer Science (1-9) - Identifying & Preventing Threats

Computer Science (1-9) - Identifying & Preventing Threats

University

11 Qs

6 - Test Management

6 - Test Management

University

10 Qs

Computer Hardware and Software Quiz

Computer Hardware and Software Quiz

Professional Development

10 Qs

Network Security Appliances

Network Security Appliances

12th Grade

12 Qs

Data Engineering y BigQuery V1

Data Engineering y BigQuery V1

12th Grade

10 Qs

8 - Mobile Testing pt. 2

8 - Mobile Testing pt. 2

Professional Development

10 Qs

JUnit Quiz

JUnit Quiz

Assessment

Quiz

Computers

KG

Hard

Created by

Brian Goodrich

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following would be used to denote a test fixture?

@Before

@Test

@Getter

@Help

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following accurately describes an assertion?

Sets up objects before each test

Will be ran after each test

Tells you if your test was successful

A library

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is needed to set a method as a test in JUnit?

@Before

assertEquals

assertThat

@Test

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is JUnit?

A library that automatically tests your functions

A built in Java library

A testing framework for Java

Where am I

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of these would be a matcher provided by the Hamcrest library?

assertNotNull

assertNotEquals

assertThat

equalTo

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What command would you use to run your test suite with maven?

maven test

npm run test

mvn test

run test

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the file called that we include dependencies like JUnit in when using maven?

node_modules

pom.xml

test

pom.html