Skip to content

Commit

Permalink
Added OrganizationTest test class.
Browse files Browse the repository at this point in the history
Quick test class to check that the Organization object is created successfully with correct parameters.
  • Loading branch information
roaraf committed Feb 26, 2026
1 parent 13c07ea commit 8b7adc2
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package ntnu.sytemutvikling.team6.models;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;

class OrganizationTest {

@Test
void initialParametersShouldBeCorrect() {
String name = "Hjelpesenter";
String telephone = "123456789";
String location = "London";
String status = "Approved";

var org = new Organization(name, telephone, location, status);

assertEquals(name, org.getName(), "Name parameter should be correct.");
assertEquals(telephone, org.getTelephone(), "Telephone parameter should be correct.");
assertEquals(location, org.getLocation(), "Location parameter should be correct.");
assertEquals(status, org.getStatus(), "Status parameter should be correct.");
}

}

0 comments on commit 8b7adc2

Please sign in to comment.