Advertisement
amandab

Untitled

Jan 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. public  void addCredsToScenarioWideDPL() throws Exception{
  2.         ScenarioWideDPL dpl = new ScenarioWideDPL();
  3.         dpl.setup("http://localhost:8080/AppvanceServices", "BasicStorage",true);                
  4.         HashMap<String,String> map = new HashMap();
  5.        
  6.         String[] keys= {"Username", "Password", "UserID"};
  7.         String[] vals= {"[email protected]", "Appvance123", "13928"};
  8.    
  9.         for(int i= 0; i < keys.length; i++){
  10.             map.put(keys[i], vals[i]);
  11.             System.out.println("Storing #"+i+" : "+keys[i].toString()+" : "+vals[i].toString());
  12.         }
  13.             dpl.put(map);
  14.         }
  15.        
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement