-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#Konfiguracja aplikacji | ||
server.port=8082 | ||
#TODO: zapytac sie czy to jest poprawne rozwiezanie czy rozwiezanie configurePathMatch @Override w klasie WebConfig jest lepsze - Iwo | ||
#TODO: Zapytać się czy lepiej ustawiać w application.properties czy w innych klasach jako @Override - Iwo | ||
#TODO: Zapytac sie czy lepiej ustawiac w application.properties czy w innych klasach jako @Override - Iwo | ||
server.servlet.contextPath=/api | ||
|
||
#Konfiguracaj bazy danych | ||
|
@@ -55,4 +55,4 @@ paypal.mode = sandbox | |
# Login/mail: [email protected] | ||
# Password: 12345678 | ||
|
||
# TODO:Spring boot prifiles, properties ró?ny zasi?g | ||
# TODO:Spring boot prifiles, properties rny zasigąśąś |
22 changes: 22 additions & 0 deletions
22
Back/Spring/backend/src/test/java/pl/kantor/backend/MVC/model/AppUserTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package pl.kantor.backend.MVC.model; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
import org.junit.jupiter.api.Test; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
public class AppUserTest { | ||
|
||
@Test | ||
public void testAppUser() { | ||
// Utwórz instancję AppUser | ||
AppUser user = new AppUser(); | ||
user.setId(1L); | ||
user.setUsername("testUser"); | ||
user.setPassword("testPassword"); | ||
|
||
// Sprawdź, czy pola są poprawnie ustawione | ||
assertEquals(1L, user.getId()); | ||
assertEquals("testUser", user.getUsername()); | ||
assertEquals("testPassword", user.getPassword()); | ||
} | ||
} |