Examples of Aluno


Examples of br.facet.tcc.pojo.Aluno

    @Override
    public Object getAsObject(FacesContext context, UIComponent component,
            String value) {

        AlunoCurso alunoCurso = new AlunoCurso();
        Aluno aluno = new Aluno();
        aluno.setNome(value);

        alunoCurso.setAluno(aluno);

        try {
            log.debug("buscando " + value + " em AlunoConverter");
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * .
     */
    @Test
    public void testSalvar() throws DaoException {

        Aluno aluno = new Aluno();

        aluno.setCpf(32932112388L);
        aluno.setDataNascimento(new Date(103, 06, 12));
        aluno.setEmail("osnircunha@email.com");
        aluno.setEndereco(this.getEnderecoDao().listar(Endereco.class).get(0));
        aluno.setNacionalidade("Brasileiro");
        aluno.setNaturalidade("S�o Vicente");
        aluno.setNome("Osnir F CUNHA");
        aluno.setNomeMae("");
        aluno.setNomePai("");
        aluno.setOrgaoExpeditor("SSP-SP");
        aluno.setRg(272675670L);
        aluno.setUfOrgaoExpeditor(Estado.SP);
        aluno.setUserLogin(this.userLoginDao.obterPorID("user_name6"));
        aluno.setSexo(Sexo.M);
        aluno.setStatus(Status.ATIVO);
        aluno.setDataDeMatricula(new Date());

        Integer codigo = this.getAlunoDao().salvar(aluno);

        Assert.assertNotNull("Codigo � nulo.", codigo);
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     */
    @Test
    public void testAtualizar() throws DaoException {

        List<Aluno> alunos = getAlunoDao().listar(Aluno.class);
        Aluno aluno = alunos.get(0);
        String unexpected = aluno.getNome();
        String actual = "novo nome";

        aluno.setNome(actual);

        getAlunoDao().atualizar(aluno);

        Aluno atualizado = getAlunoDao().listar(Aluno.class).get(0);

        Assert.assertNotSame("Nome n�o foi atualizado.", unexpected,
                atualizado.getNome());
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * {@link br.facet.tcc.impl.dao.AlunoDaoImpl#pesquisar(br.facet.tcc.pojo.Aluno)}
     * .
     */
    @Test
    public void testPesquisar() throws DaoException {
        Aluno aluno = new Aluno();
        aluno.setNaturalidade("S�o%");
        List<Aluno> alunos = getAlunoDao().pesquisar(aluno);
        Assert.assertTrue("Lista esta vazia", alunos.size() > 0);
    }
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * Reset Fields
     *
     */
    public void reset() {
        alunoSalvar = new AlunoCurso();
        alunoSalvar.setAluno(new Aluno());
        alunoSalvar.getAluno().setUserLogin(new UserLogin());
        alunoSalvar.getAluno().setStatus(Status.ATIVO);
        alunoSalvar.setSituacaoAlunoCurso(SituacaoAlunoCurso.CADASTRADO);

        alunoPesquisar = new AlunoCurso();
        alunoPesquisar.setAluno(new Aluno());
        alunoPesquisar.getAluno().setUserLogin(new UserLogin());

    }
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * @throws DaoException
     */
    @Test
    public void testSalvarUsuarioAluno() throws DaoException {

        Aluno aluno = new Aluno();
        Endereco endereco = new Endereco();

        endereco.setBairro("bairro");
        endereco.setCep(123);
        endereco.setCidade("cidade");
        endereco.setComplemento("complemento");
        endereco.setEstado(Estado.PR);
        endereco.setNumero(123);
        endereco.setRua("rua");

        aluno.setCpf(32932112388L);
        aluno.setDataNascimento(new Date(103, 06, 12));
        aluno.setEmail("osnircunha@email.com");
        aluno.setEndereco(endereco);
        aluno.setNacionalidade("Brasileiro");
        aluno.setNaturalidade("S�o Vicente");
        aluno.setNome("Osnir F CUNHA");
        aluno.setNomeMae("");
        aluno.setNomePai("");
        aluno.setOrgaoExpeditor("SSP-SP");
        aluno.setRg(272675670L);
        aluno.setUfOrgaoExpeditor(Estado.SP);
        aluno.setUserLogin(this.userLoginDao.obterPorID("user_name4"));
        aluno.setSexo(Sexo.M);
        aluno.setStatus(Status.ATIVO);
        aluno.setDataDeMatricula(new Date());

        Integer codigo = null;
        try {

            codigo = gestaoAluno.salvarUsuario(aluno);
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * .
     */
    @Test
    public void testRemoverUsuarioAluno() {

        Aluno aluno = null;

        try {

            aluno = this.gestaoAluno.consultarUsuario(Aluno.class, 4);
            this.gestaoAluno.removerUsuario(aluno);
View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * .
     */
    @Test
    public void testConsultarUsuarioClassInteger() {

        Aluno aluno = null;

        try {

            aluno = this.gestaoAluno.consultarUsuario(Aluno.class, 3);

View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * .
     */
    @Test
    public void testConsultarUsuarioAluno() {

        Aluno aluno = new Aluno();
        List<Aluno> alunos = null;
        aluno.setNacionalidade("Bras%");

        try {

            alunos = gestaoAluno.consultarUsuario(aluno);

View Full Code Here

Examples of br.facet.tcc.pojo.Aluno

     * .
     */
    @Test
    public void testAlterarUsuarioAluno() {

        Aluno aluno = null;
        String emailAntigo = null, emailNovo = null;
        try {

            aluno = this.gestaoAluno.consultarUsuario(Aluno.class, 3);
            emailAntigo = aluno.getEmail();
            aluno.setEmail("EmailNovo");
            emailAntigo = aluno.getEmail();

        } catch (ServiceException e) {
            Assert.fail();
        }
        System.out.println(aluno);
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.