Question: Programming intelliJ using a Maven i cannot get the @Test method to work as you can see in the screenshots. also assertEquals is not working.

Programming intelliJ using a Maven i cannot get the @Test method to work as you can see in the screenshots. also assertEquals is not working. Can you help me figure out why the @Test is not working and get this to run in intelliJ????
(C) gradecalculatortest.java
(1) cannot find symbol class Test :4
(4 cannot find symbol method assertEquals(java.lang.String,java.lang.String,java.lang.String) :8
Lesson1_1
Version control
JUnit
Project
m pom.xml (Unknown)
(C) GradeCalculator.java
(C) gradecalculatortest.java
(c) JUnit.java
(5) Main.java
Lesson1_1
Version control vv
JUnit
Project
m pom.xml (Unknown)
GradeCalculator.java
gradecalculatortest.java
G9 JUnit.java
9 Main.java
(c) GradeCalculator
(C) gradecalculatorte
(c) JUnit
resources
test
java
>
target
gitignore
mpom.xml
External Libraries
Scratches and Consoles
1
public class GradeCalculat
C:\Users\mf67382\Documents\Lesson1_1\src\main\java\GradeCalculator.java
2 @
float total =0;
for (int mark : marks){
3
4
5
6
total += mark;
}
float avg = total / marks.length;
if (avg >=80){
return "A";
} else if (avg >=60 && avg 80){
return "B";
} else if (avg >=40 && avg b0){
return "C";
} else {
return "D";
}
}
}
C: \Users\mf67382\Documents\Lesson1_1\src\main\java\gradecalculatortest .java:4:6
java: cannot find symbol
symbol: class Test
location: class gradecalculatortest
Lesson1_1> src > main > java >(C) GradeCalculator
Programming intelliJ using a Maven i cannot get

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!