Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Source getSource() {
- Source source = new Source();
- source.setAutoPlay(new Random().nextBoolean());
- source.setBackgrounded(new Random().nextBoolean());
- int sourceNameInt = new Random().nextInt(SourceNamesEnum.values().length);
- source.setPlatform(ANDROID_X_X+sourceNameInt);
- source.setName(SourceNamesEnum.get(sourceNameInt).name());
- source.setDevice(XYZ_V+sourceNameInt);
- return source;
- }
- PS.: SourceNamesEnum can be found at http://pastebin.com/VJkMqay3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement