Пример #1
0
 public void abrirSessoes() throws LoginException, UsuarioNaoCadastradoException {
   String sessaoID;
   for (String[] usuario : listagemUsuarios) {
     sessaoID = fachada.abrirSessao(usuario[0], usuario[1]);
     sessoes.put(usuario[0], sessaoID);
   }
 }
Пример #2
0
  public String[] populaTags(String sessaoID, String[] tagName)
      throws SessaoIDException, LoginException, UsuarioNaoCadastradoException {
    String[] retorno = new String[3];

    for (int i = 0; i < retorno.length; i++) {
      retorno[i] = fachada.criarTag(sessaoID, tagName[i]);
    }

    return retorno;
  }
Пример #3
0
  public String[] populaListaDeSons(String sessaoID)
      throws SessaoIDException, LinkInvalidoException, DataInvalidaException, IOException {
    String[] retorno = new String[3];
    String[][] sons = new String[3][2];
    sons[0] = new String[] {"http://youtube.com/seiLa", "25/12/2020"};
    sons[1] = new String[] {"http://vimeo.com/seiLa", "23/06/2021"};
    sons[2] = new String[] {"http://blabla.com/seiLa", "10/04/2022"};

    for (int i = 0; i < retorno.length; i++) {
      retorno[i] = fachada.postarSom(sessaoID, sons[i][0], sons[i][1]);
    }

    return retorno;
  }
Пример #4
0
 public void populaCenario() throws CriacaoUserException, AtributoException, IOException {
   for (String[] usuario : listagemUsuarios) {
     fachada.criarUsuario(usuario[0], usuario[1], usuario[2], usuario[3]);
   }
 }
Пример #5
0
 public Cenario() throws Exception {
   fachada = new FachadaEasyAccept();
   fachada.zerarSistema();
   sessoes = new HashMap<String, String>();
   inicializaInfoUsuario();
 }