Examples of Estabelecimento


Examples of bean.Estabelecimento

        String senha = SenhadaLoja.getText();
        double saldo;
       
        try {
            String nome_estab = banco.getEstabelecimentoDB(cnpj);       
            this.estabelecimento = new Estabelecimento(cnpj, nome_estab);
            boolean acesso = banco.checkSenhaEstabelecimentoDB(cnpj, senha);      
                       
            if (acesso){
                saldo = banco.getVendaTotalEstabelecimentoDB(cnpj);
                JanelaEst frame = new JanelaEst();
View Full Code Here

Examples of bean.Estabelecimento

              }
         }
         else{
             try {
                 GerenciarDB estabelecimento = new GerenciarDB();
                 Estabelecimento shop = new Estabelecimento (cnpj, nomeLoja);
                 estabelecimento.addEstabelecimento(shop);
                 JanelaInicioAdmin frame = new JanelaInicioAdmin();
                 frame.setLocationRelativeTo(null);
                 frame.setVisible(true);
                 this.dispose();
View Full Code Here

Examples of br.com.caelum.agiletickets.models.Estabelecimento

    manager.getTransaction().begin();
    manager.createQuery("delete from Sessao").executeUpdate();
    manager.createQuery("delete from Espetaculo").executeUpdate();
    manager.createQuery("delete from Estabelecimento").executeUpdate();
    Estabelecimento estabelecimento = new Estabelecimento();
    estabelecimento.setNome("Casa de shows");
    estabelecimento.setEndereco("Rua dos Silveiras, 12345");

    Espetaculo espetaculo = new Espetaculo();
    espetaculo.setEstabelecimento(estabelecimento);
    espetaculo.setNome("Depeche Mode");
    espetaculo.setTipo(TipoDeEspetaculo.SHOW);
View Full Code Here

Examples of br.com.caelum.agiletickets.models.Estabelecimento

    controller = new EstabelecimentosController(diretorio, result, validator);
  }

  @Test(expected=ValidationException.class)
  public void naoDeveAdicionarEstabelecimentoSemNome() throws Exception {
    Estabelecimento estabelecimento = new Estabelecimento();
    estabelecimento.setEndereco("Um endereco");

    controller.adiciona(estabelecimento);

    verifyNoMoreInteractions(diretorio);
  }
View Full Code Here

Examples of br.com.caelum.agiletickets.models.Estabelecimento

    verifyNoMoreInteractions(diretorio);
  }

  @Test(expected=ValidationException.class)
  public void naoDeveAdicionarEstabelecimentoSemEndereco() throws Exception {
    Estabelecimento estabelecimento = new Estabelecimento();
    estabelecimento.setNome("Um nome");

    controller.adiciona(estabelecimento);

    verifyNoMoreInteractions(diretorio);
  }
View Full Code Here

Examples of br.com.caelum.agiletickets.models.Estabelecimento

    verifyNoMoreInteractions(diretorio);
  }

  @Test
  public void deveAdicionarEstabelecimentoComNomeEEndereco() throws Exception {
    Estabelecimento estabelecimento = new Estabelecimento();
    estabelecimento.setNome("Um nome");
    estabelecimento.setEndereco("Um endereco");

    controller.adiciona(estabelecimento);

    verify(diretorio).adiciona(estabelecimento);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.