Package br.facet.tcc.pojo

Examples of br.facet.tcc.pojo.Aluno


     * @since since optional
     */
    @Override
    public Aluno getRowData(String rowKey) {
        Integer id = Integer.parseInt(rowKey);
        Aluno aluno = null;
        try {
            aluno = this.gestaoAlunoImpl.consultarUsuario(Aluno.class, id);
        } catch (ServiceException e) {
            e.printStackTrace();
        }
View Full Code Here


     * @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 GregorianCalendar(1983, 06, 12).getTime());
        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(null);
View Full Code Here

    /**
     * Reset Fields
     *
     */
    public void reset() {
        alunoSalvar = new Aluno();
        alunoPesquisar = new Aluno();
        alunoSalvar.setUserLogin(new UserLogin());
        alunoPesquisar.setUserLogin(new UserLogin());
        alunoSalvar.setStatus(Status.ATIVO);
    }
View Full Code Here

    }

    public List<Aluno> completeDisciplina(String query) {
        List<Aluno> suggestions = new ArrayList<Aluno>();

        Aluno aluno = new Aluno();
        aluno.setNome(query);

        // suggestions = this.usurioService.consultarUsuario(suggestions);

        return suggestions;
    }
View Full Code Here

    public MatriculaManagedBean() {
        reset();
    }

    private void reset() {
        this.aluno = new AlunoCurso(new Curso(), new Aluno(),
                SituacaoAlunoCurso.CURSANDO);
        this.turmasListadas = new ArrayList<Turma>();
        this.turmasSelecionadas = new ArrayList<Turma>();

    }
View Full Code Here

    }

    public List<AlunoCurso> completeAluno(String query) {
        List<AlunoCurso> suggestions = new ArrayList<AlunoCurso>();

        Aluno aluno = new Aluno();
        aluno.setNome(query);

        AlunoCurso alunoCurso = new AlunoCurso();
        alunoCurso.setAluno(aluno);
        alunoCurso.setSituacaoAlunoCurso(SituacaoAlunoCurso.CURSANDO);
View Full Code Here

    @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

     * .
     */
    @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

     */
    @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

     * {@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

TOP

Related Classes of br.facet.tcc.pojo.Aluno

Copyright © 2018 www.massapicom. 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.