-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit-test for bevaring av tittel fra arbeidsplassen for ekstern stilling
- Loading branch information
Showing
2 changed files
with
34 additions
and
62 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 |
---|---|---|
|
@@ -5,11 +5,14 @@ import rekrutteringsbistand.stilling.indekser.stillingsinfo.Stillingsinfo | |
import java.time.LocalDateTime | ||
|
||
|
||
fun enAdMed(source: String = "source", | ||
categories: List<StyrkCategory> = listOf(StyrkCategory("1111", "name111"), StyrkCategory("2222", "name2222"), StyrkCategory("666666", "name666666"))) = Ad( | ||
fun enAdMed( | ||
source: String = "source", | ||
categories: List<StyrkCategory> = listOf(StyrkCategory("1111", "name111"), StyrkCategory("2222", "name2222"), StyrkCategory("666666", "name666666")), | ||
title: String = "tittel", | ||
) = Ad( | ||
"uuid", | ||
"annonsenr", | ||
"tittel", | ||
title, | ||
AdStatus.ACTIVE, | ||
PrivacyChannel.INTERNAL_NOT_SHOWN, | ||
Administration( | ||
|
@@ -61,62 +64,7 @@ fun enAdMed(source: String = "source", | |
) | ||
) | ||
|
||
|
||
val enAd = Ad( | ||
"uuid", | ||
"annonsenr", | ||
"tittel", | ||
AdStatus.ACTIVE, | ||
PrivacyChannel.INTERNAL_NOT_SHOWN, | ||
Administration( | ||
AdministrationStatus.DONE, | ||
listOf(RemarkType.FOREIGN_JOB), | ||
"kommentar", | ||
"reportee", | ||
"navIdent" | ||
), | ||
LocalDateTime.now().toString(), | ||
LocalDateTime.now().toString(), | ||
LocalDateTime.now().toString(), | ||
LocalDateTime.now().toString(), | ||
Company( | ||
"navn", | ||
"publicname", | ||
"orgnr", | ||
"parentOrgnr", | ||
"orgform" | ||
), | ||
listOf(StyrkCategory("1111", "name111"), StyrkCategory("2222", "name2222"), StyrkCategory("666666", "name666666")), | ||
"source", | ||
"medium", | ||
"reference", | ||
LocalDateTime.now().toString(), | ||
"businessName", | ||
listOf( | ||
Location( | ||
"address", | ||
"postalCode", | ||
"county", | ||
"municipal", | ||
"city", | ||
"country", | ||
"latitue", | ||
"longitude", | ||
"municipal_code", | ||
"county_code" | ||
) | ||
), | ||
listOf( | ||
Property("sector", "Offentlig"), | ||
Property("adtext", "<h1>Tittel</h2><p>Den beste stillingen <b>noen sinne</b></p>"), | ||
Property("searchtags", "[{\"label\":\"Sales Promotion Manager\",\"score\":1.0},{\"label\":\"Salgssjef\",\"score\":0.25137392},{\"label\":\"Sales Manager (Hotels)\",\"score\":0.21487874},{\"label\":\"Promotions Director\",\"score\":0.09032349},{\"label\":\"Salgsfremmer\",\"score\":0.09004237}]"), | ||
Property("tags", "[\"INKLUDERING__ARBEIDSTID\", \"TILTAK_ELLER_VIRKEMIDDEL__LÆRLINGPLASS\"]") | ||
), | ||
listOf( | ||
Contact("Vegard Veiledersen", "[email protected]", "", "Veileder","Markedskontakt") | ||
) | ||
) | ||
|
||
val enAd = enAdMed() | ||
|
||
val enAdUtenKontaktinformasjon = Ad( | ||
"uuid", | ||
|