generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FakeResourceBundle to not use the intenationalize files and hardcode …
…the values
- Loading branch information
1 parent
9c7fc0b
commit c2b9b69
Showing
3 changed files
with
25 additions
and
5 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
20 changes: 20 additions & 0 deletions
20
...iq/src/main/java/com/wiq/wiq/services/questionGenerator/generator/FakeResourceBundle.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,20 @@ | ||
package com.wiq.wiq.services.questionGenerator.generator; | ||
|
||
import java.util.HashMap; | ||
|
||
public class FakeResourceBundle { | ||
|
||
private HashMap<String, String> questions = new HashMap<>(); | ||
|
||
public FakeResourceBundle(){ | ||
questions.put("question.population", "What's the population of %s?"); | ||
questions.put("question.language", "What's the official language of %s?"); | ||
questions.put("question.capital", "What's the capital of %s?"); | ||
questions.put("question.size", "What's the size of %s?"); | ||
} | ||
|
||
public String getString(String string) { | ||
return questions.get(string); | ||
} | ||
|
||
} |
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