Skip to content

Commit

Permalink
feat: merge release/v1.0.0 into feat/User, fix up on differences in b…
Browse files Browse the repository at this point in the history
…ranches and test that everythings alright with maven commands
  • Loading branch information
Fredrik Marjoni committed Mar 7, 2026
1 parent 3f13cfa commit c3b7e40
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
9 changes: 1 addition & 8 deletions src/main/java/edu/group5/app/App.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
package edu.group5.app;

import java.sql.Wrapper;
import java.util.HashMap;

import edu.group5.app.control.OrgAPIWrapper;
import tools.jackson.core.type.TypeReference;
import tools.jackson.databind.ObjectMapper;

/**
* Hello world!
*/
public class App {
public static void main(String[] args) throws InterruptedException {
Wrapper wrap = new Wrapper();
System.out.println("Hello World!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Object[] export() {
orgMap.put("org_number", org.orgNumber());
orgMap.put("name", org.name());
orgMap.put("status", org.trusted() ? "approved" : "unapproved");
orgMap.put("url", org.websiteURL());
orgMap.put("url", org.websiteUrl());
orgMap.put("is_pre_approved", org.isPreApproved());
return orgMap;
})
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/edu/group5/app/model/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public boolean registerUser(String role, String firstName, String lastName,
User user;
if (role.equalsIgnoreCase("Customer")) {
user = new Customer(userRepository.getNextUserId(), firstName, lastName, email, passwordHash);
} else { /* TODO when you switch to a real DB,
replace getNextUserId with DB auto-increment/identity and ignore manual ID generation in service*/
} else { /* TODO when you switch to a real DB, replace getNextUserId with DB auto-increment/identity and ignore manual ID generation in service*/
return false;
}
userRepository.addUser(user);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package edu.group5.app.model.donation;

import edu.group5.app.model.organization.Organization;
import edu.group5.app.model.organization.OrganizationRepository;
import edu.group5.app.model.user.Customer;

Expand All @@ -12,7 +11,7 @@
import java.time.Instant;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void constructor_CreatesAnOrganizationWhenInputIsValid() {
() -> assertEquals(1, org.orgNumber()),
() -> assertEquals("Org", org.name()),
() -> assertTrue(org.trusted()),
() -> assertEquals("org.com", org.websiteURL()),
() -> assertEquals("org.com", org.websiteUrl()),
() -> assertTrue(org.isPreApproved()),
() -> assertEquals("Org description", org.description())
);
Expand Down

0 comments on commit c3b7e40

Please sign in to comment.