-
Notifications
You must be signed in to change notification settings - Fork 3
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
8 changed files
with
99 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
62 changes: 62 additions & 0 deletions
62
...vice-data/src/main/java/com/adobe/campaign/tests/bridge/testdata/one/ClassWithLogger.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,62 @@ | ||
/* | ||
* Copyright 2022 Adobe | ||
* All Rights Reserved. | ||
* | ||
* NOTICE: Adobe permits you to use, modify, and distribute this file in | ||
* accordance with the terms of the Adobe license agreement accompanying | ||
* it. | ||
*/ | ||
package com.adobe.campaign.tests.bridge.testdata.one; | ||
|
||
|
||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.Random; | ||
|
||
public class ClassWithLogger { | ||
protected static Logger log = LogManager.getLogger(); | ||
|
||
|
||
|
||
private static final List<String> countries = Arrays.asList("AT", "AU", | ||
"CA", "CH", "DE"); | ||
|
||
private static Random randomGen = new Random(); | ||
|
||
/** | ||
* A getter for the Language Encodings | ||
* @return | ||
* | ||
public static LanguageEncodings getLanguageEncoding(){ | ||
return languageEncoding; | ||
} | ||
*/ | ||
public static List<String> getCountries() { | ||
return countries; | ||
} | ||
|
||
|
||
|
||
public static Random getRandomGen() { | ||
return randomGen; | ||
} | ||
|
||
|
||
/** | ||
* This method returns a random country ISOA2 code. | ||
* | ||
* @return ISOA2 country code | ||
* | ||
* @author lepolles | ||
*/ | ||
public static String fetchRandomCountry() { | ||
int l_countryNr = countries.size(); | ||
|
||
return countries.get(getRandomGen().nextInt(l_countryNr)); | ||
} | ||
|
||
} |
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
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