<commit_before>package br.com.pjbank.sdk.contadigital;

import br.com.pjbank.sdk.enums.FormatoExtrato;
import br.com.pjbank.sdk.enums.TipoConta;
import br.com.pjbank.sdk.exceptions.PJBankException;
import br.com.pjbank.sdk.models.contadigital.TransacaoTransferencia;
import br.com.pjbank.sdk.models.contadigital.TransacaoTransferenciaInterna;
import org.json.JSONException;
import org.junit.Test;

import java.io.IOException;
import java.net.URISyntaxException;
import java.text.ParseException;
import java.util.*;

/**
 * @author <NAME> <<EMAIL>>
 * @version 1.0
 * @since 1.0
 */
public class ContaDigitalManagerTest {
    @Test
    public void addBalance() throws IOException, JSONException, PJBankException {
    }

    @Test
    public void addAdmin() throws IOException, JSONException, PJBankException {
    }

    @Test
    public void getStatusAdmin() throws IOException, JSONException, PJBankException {
    }

    @Test
    public void delAdmin() throws IOException, JSONException, PJBankException {
    }

    @Test
    public void expenseBarcodePayment() throws IOException, JSONException, ParseException, PJBankException {<commit_msg>Implementação de teste de inserção de carga em conta digital<commit_after>package br.com.pjbank.sdk.contadigital;

import br.com.pjbank.sdk.exceptions.PJBankException;
import br.com.pjbank.sdk.models.common.Boleto;
import org.json.JSONException;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;
import java.net.URISyntaxException;
import java.text.ParseException;

import static org.hamcrest.Matchers.emptyOrNullString;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;

/**
 * @author <NAME> <<EMAIL>>
 * @version 1.0
 * @since 1.0
 */
public class ContaDigitalManagerTest {
    private String credencial;
    private String chave;

    @Before
    public void init() {
        this.credencial = "eb2af021c5e2448c343965a7a80d7d090eb64164";
        this.chave = "a834d47e283dd12f50a1b3a771603ae9dfd5a32c";
    }

    @Test
    public void addBalanceComValorValido() throws IOException, JSONException, PJBankException {
        ContaDigitalManager contaDigitalManager = new ContaDigitalManager(this.credencial, this.chave);

        Boleto boleto = contaDigitalManager.addBalance(25.50);

        Assert.assertThat(boleto.getNossoNumero(), not(is(emptyOrNullString())));
        Assert.assertThat(boleto.getLinkBoleto(), not(is(emptyOrNullString())));
        Assert.assertThat(boleto.getLinhaDigitavel(), not(is(emptyOrNullString())));
    }

    @Test(expected = PJBankException.class)
    public void addBalanceComValorMenorQueVinteECincoReais() throws IOException, JSONException, PJBankException {
        ContaDigitalManager contaDigitalManager = new ContaDigitalManager(this.credencial, this.chave);

        Boleto boleto = contaDigitalManager.addBalance(1.50);

        Assert.assertThat(boleto.getNossoNumero(), not(is(emptyOrNullString())));
        Assert.assertThat(boleto.getLinkBoleto(), not(is(emptyOrNullString())));
        Assert.assertThat(boleto.getLinhaDigitavel(), not(is(emptyOrNullString())));
    }

    @Test
    public void addAdmin() throws IOException, JSONException, PJBankException {
    }

    @Test
    public void getStatusAdmin() throws IOException, JSONException, PJBankException {
    }

    @Test
    public void delAdmin() throws IOException, JSONException, PJBankException {
    }

    @Test
    public void expenseBarcodePayment() throws IOException, JSONException, ParseException, PJBankException {
{'fraction_non_alphanumeric': 0.10112044817927171, 'fraction_numerical': 0.018487394957983194, 'mean_word_length': 4.60596546310832, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4443575', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1133, 'n_words': 215}