-
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.
password fix and overview's effect fixed
- Loading branch information
Showing
22 changed files
with
134 additions
and
133 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
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 |
---|---|---|
|
@@ -29,11 +29,11 @@ public class RichiestaDServletTest extends Mockito { | |
@BeforeAll | ||
static void setUtente() { | ||
try { | ||
utente = new Utente("[email protected]", "Frank", PasswordManager.createHash("password"), "studente"); | ||
utente = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "studente"); | ||
TestingUtility.createUtente(utente); | ||
|
||
Date d = Date.valueOf("1998-06-01"); | ||
Studente studente = new Studente("[email protected]", "Frank", PasswordManager.createHash("password"), | ||
Studente studente = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501E", "1234567891", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(studente); | ||
|
||
|
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 |
---|---|---|
|
@@ -40,27 +40,27 @@ public class RichiestaDServletWhiteBoxTest extends Mockito { | |
public void load() { | ||
|
||
try { | ||
Utente aziendaData = new Utente("[email protected]", "Prova", "password", "azienda"); | ||
Utente aziendaData = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(aziendaData); | ||
|
||
azienda = new Azienda("[email protected]", "Prova", "password", "03944080652", | ||
azienda = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080652", | ||
"via prova 2", "pippo", "5485", 55); | ||
TestingUtility.createAzienda(azienda); | ||
|
||
Utente studenteData = new Utente("[email protected]", "Frank", "password", | ||
Utente studenteData = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"studente"); | ||
TestingUtility.createUtente(studenteData); | ||
|
||
Date d = Date.valueOf("1998-06-01"); | ||
studente = new Studente("[email protected]", "Frank", "password", | ||
studente = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501E", "1234567891", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(studente); | ||
|
||
ufficioCarriere = new Utente("[email protected]", "Ufficio Carriere", "password", | ||
ufficioCarriere = new Utente("[email protected]", "Ufficio Carriere", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"ufficio_carriere"); | ||
TestingUtility.createUtente(ufficioCarriere); | ||
|
||
admin = new Utente("[email protected]", "Admin", "password", | ||
admin = new Utente("[email protected]", "Admin", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"admin"); | ||
TestingUtility.createUtente(admin); | ||
|
||
|
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 |
---|---|---|
|
@@ -47,29 +47,29 @@ public class PdfServletTest extends Mockito { | |
static void setUp() { | ||
|
||
try { | ||
azienda = new Utente("[email protected]", "Prova", PasswordManager.createHash("password"), "azienda"); | ||
azienda = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(azienda); | ||
|
||
Azienda az = new Azienda("[email protected]", "Prova", PasswordManager.createHash("password"), "03944080652", "via prova 2", | ||
Azienda az = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080652", "via prova 2", | ||
"pippo", "5485", 55); | ||
TestingUtility.createAzienda(az); | ||
|
||
studente = new Utente("[email protected]", "Frank", PasswordManager.createHash("password"), "studente"); | ||
studente = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "studente"); | ||
TestingUtility.createUtente(studente); | ||
|
||
Date d = Date.valueOf("1998-06-01"); | ||
Studente st = new Studente("[email protected]", "Frank", PasswordManager.createHash("password"), | ||
Studente st = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501E", "1234567891", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(st); | ||
|
||
tirocinio = new Tirocinio(999, Tirocinio.NON_COMPLETO, 7000, "pippo", 500, "not extis", st, | ||
az, "not extist"); | ||
TestingUtility.createTirocinio(tirocinio); | ||
|
||
secondAzienda = new Utente("[email protected]", "Prova", PasswordManager.createHash("password"), "azienda"); | ||
secondAzienda = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(secondAzienda); | ||
|
||
Azienda azi = new Azienda("[email protected]", "Prova", PasswordManager.createHash("password"), "03944080650", | ||
Azienda azi = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080650", | ||
"via prova 2", | ||
"pippo", "5485", 55); | ||
TestingUtility.createAzienda(azi); | ||
|
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 |
---|---|---|
|
@@ -41,27 +41,27 @@ public class PdfServletWhiteBoxTest extends Mockito { | |
public void load() { | ||
|
||
try { | ||
Utente aziendaData = new Utente("[email protected]", "Prova", "password", "azienda"); | ||
Utente aziendaData = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(aziendaData); | ||
|
||
azienda = new Azienda("[email protected]", "Prova", "password", "03944080652", | ||
azienda = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080652", | ||
"via prova 2", "pippo", "5485", 55); | ||
TestingUtility.createAzienda(azienda); | ||
|
||
Utente studenteData = new Utente("[email protected]", "Frank", "password", | ||
Utente studenteData = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"studente"); | ||
TestingUtility.createUtente(studenteData); | ||
|
||
Date d = Date.valueOf("1998-06-01"); | ||
studente = new Studente("[email protected]", "Frank", "password", | ||
studente = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501E", "1234567891", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(studente); | ||
|
||
ufficioCarriere = new Utente("[email protected]", "Ufficio Carriere", "password", | ||
ufficioCarriere = new Utente("[email protected]", "Ufficio Carriere", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"ufficio_carriere"); | ||
TestingUtility.createUtente(ufficioCarriere); | ||
|
||
admin = new Utente("[email protected]", "Admin", "password", | ||
admin = new Utente("[email protected]", "Admin", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"admin"); | ||
TestingUtility.createUtente(admin); | ||
|
||
|
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 |
---|---|---|
|
@@ -36,18 +36,18 @@ class RegistroServletTest extends Mockito { | |
static void setUp() { | ||
|
||
try { | ||
azienda = new Utente("[email protected]", "Prova", PasswordManager.createHash("password"), "azienda"); | ||
azienda = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(azienda); | ||
|
||
Azienda prova = new Azienda("[email protected]", "Prova", PasswordManager.createHash("password"), "03944080652", | ||
Azienda prova = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080652", | ||
"via prova 2", "pippo", "5485", 55); | ||
TestingUtility.createAzienda(prova); | ||
|
||
studente = new Utente("[email protected]", "Frank", PasswordManager.createHash("password"), "studente"); | ||
studente = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "studente"); | ||
TestingUtility.createUtente(studente); | ||
|
||
Date d = Date.valueOf("1998-06-01"); | ||
Studente ruocco = new Studente("[email protected]", "Frank", PasswordManager.createHash("password"), | ||
Studente ruocco = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501E", "1234567891", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(ruocco); | ||
|
||
|
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 |
---|---|---|
|
@@ -46,36 +46,36 @@ public class RegistroServletWhiteBoxTest extends Mockito { | |
public void load() { | ||
|
||
try { | ||
azienda = new Utente("[email protected]", "Prova", "password", "azienda"); | ||
azienda = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(azienda); | ||
|
||
realAzienda = new Azienda("[email protected]", "Prova", "password", "03944080652", | ||
realAzienda = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080652", | ||
"via prova 2", "pippo", "5485", 55); | ||
TestingUtility.createAzienda(realAzienda); | ||
|
||
|
||
fakeAzienda = new Utente("[email protected]", "Prova", "password", "azienda"); | ||
fakeAzienda = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(fakeAzienda); | ||
|
||
Azienda secondAzienda = new Azienda("[email protected]", "Prova", "password", "03944080680", | ||
Azienda secondAzienda = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080680", | ||
"via prova 2", "pippo", "5485", 55); | ||
TestingUtility.createAzienda(secondAzienda); | ||
|
||
studente = new Utente("[email protected]", "Frank", "password", | ||
studente = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"studente"); | ||
TestingUtility.createUtente(studente); | ||
|
||
Date d = Date.valueOf("1998-06-01"); | ||
realStudente = new Studente("[email protected]", "Frank", "password", | ||
realStudente = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501E", "1234567891", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(realStudente); | ||
|
||
fakeStudente = new Utente("[email protected]", "Frank", "password", | ||
fakeStudente = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"studente"); | ||
TestingUtility.createUtente(fakeStudente); | ||
|
||
d = Date.valueOf("1998-06-01"); | ||
Studente secondStudente = new Studente("[email protected]", "Frank", "password", | ||
Studente secondStudente = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501R", "1234567890", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(secondStudente); | ||
|
||
|
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 |
---|---|---|
|
@@ -42,26 +42,26 @@ public class TirocinioServletTest extends Mockito { | |
static void setUp() { | ||
|
||
try { | ||
firstAzienda = new Utente("[email protected]", "Prova", PasswordManager.createHash("password"), "azienda"); | ||
firstAzienda = new Utente("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "azienda"); | ||
TestingUtility.createUtente(firstAzienda); | ||
|
||
Azienda prova = new Azienda("[email protected]", "Prova", PasswordManager.createHash("password"), "03944080652", | ||
Azienda prova = new Azienda("[email protected]", "Prova", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "03944080652", | ||
"via prova 2", "pippo", "5485", 55); | ||
TestingUtility.createAzienda(prova); | ||
|
||
firstStudente = new Utente("[email protected]", "Frank", PasswordManager.createHash("password"), "studente"); | ||
firstStudente = new Utente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "studente"); | ||
TestingUtility.createUtente(firstStudente); | ||
|
||
Date d = Date.valueOf("1998-06-01"); | ||
Studente ruocco = new Studente("[email protected]", "Frank", PasswordManager.createHash("password"), | ||
Studente ruocco = new Studente("[email protected]", "Frank", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"RCCFNC98H01H501E", "1234567891", d, "Italia", "Vallo", "3485813158", "Ruocco"); | ||
TestingUtility.createStudente(ruocco); | ||
|
||
secondStudente = new Utente("[email protected]", "Mario", PasswordManager.createHash("password"), "studente"); | ||
secondStudente = new Utente("[email protected]", "Mario", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", "studente"); | ||
TestingUtility.createUtente(secondStudente); | ||
|
||
d = Date.valueOf("1998-01-05"); | ||
Studente rossi = new Studente("[email protected]", "Mario", PasswordManager.createHash("password"), | ||
Studente rossi = new Studente("[email protected]", "Mario", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"MRORSS98A05H703Q", "1234567891", d, "Italia", "Rofrano", "3485813158", "Rossi"); | ||
TestingUtility.createStudente(rossi); | ||
|
||
|
@@ -73,7 +73,7 @@ static void setUp() { | |
prova, "not extist"); | ||
TestingUtility.createTirocinio(secondTirocinio); | ||
|
||
carrierOffice = new Utente("[email protected]", "Ufficio Carriere", PasswordManager.createHash("password"), | ||
carrierOffice = new Utente("[email protected]", "Ufficio Carriere", "2:02:44e9f86136f9b41ce62a1d2605e79ac4be5d5793dac00302553500d1dff4af65d2baa89503990c2114a9b95184", | ||
"ufficio_carriere"); | ||
TestingUtility.createUtente(carrierOffice); | ||
|
||
|
Oops, something went wrong.