<commit_before>package biz.dfch.j.clickatell.rest;

import biz.dfch.j.clickatell.ClickatellClient;
import biz.dfch.j.clickatell.rest.accountbalance.AccountBalanceResponse;
import biz.dfch.j.clickatell.rest.coverage.CoverageResponse;
import biz.dfch.j.clickatell.rest.message.Message;
import biz.dfch.j.clickatell.rest.message.MessageResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpResponseException;
import org.junit.*;
import org.junit.runners.MethodSorters;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;

import static org.junit.Assert.assertEquals;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ClickatellClientTest
{
    private String authToken = "";

    @BeforeClass
    public static void BeforeClass()
    {
        System.out.println("BeforeClass");
    }
    @Before
    public void Before()
    {
        System.out.println("Before");
        //authToken = "CLICKATELL-REST-API-KEY";
        authToken = "<KEY>.";
    }

    @Test
    public void A1000_doNothingReturnsTrue()
    {
        String fn = Thread.currentThread().getStackTrace()[1].getMethodName();
        System.out.println(String.format("%s: CALL.", fn));

        assertEquals(true, true);

        System.out.println(String.format("%s: RET.", fn));
    }

    @Test
    public void A1100_doCreateClientReturnsTrue()
            throws URISyntaxException, ClientProtocolException, IOException
    {
        String fn = Thread.currentThread().getStackTrace()[1].getMethodName();
        System.out.println(String.format("%s: CALL.", fn));

        ClickatellClient clickatellClient = new ClickatellClient(authToken);

        System.out.println(String.format("%s: RET.", fn));
    }

    @Test(expected = NullPointerException.class)
    public void A1110_doCreateClientNullTokenThrowsNullPointerException()
            throws URISyntaxException<commit_msg>2015-02-19; rrink; DEL: removed test API key<commit_after>package biz.dfch.j.clickatell.rest;

import biz.dfch.j.clickatell.ClickatellClient;
import biz.dfch.j.clickatell.rest.accountbalance.AccountBalanceResponse;
import biz.dfch.j.clickatell.rest.coverage.CoverageResponse;
import biz.dfch.j.clickatell.rest.message.Message;
import biz.dfch.j.clickatell.rest.message.MessageResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpResponseException;
import org.junit.*;
import org.junit.runners.MethodSorters;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;

import static org.junit.Assert.assertEquals;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ClickatellClientTest
{
    private String authToken = "";

    @BeforeClass
    public static void BeforeClass()
    {
        System.out.println("BeforeClass");
    }
    @Before
    public void Before()
    {
        System.out.println("Before");
        authToken = "CLICKATELL-REST-API-KEY-AUTH-TOKEN";
    }

    @Test
    public void A1000_doNothingReturnsTrue()
    {
        String fn = Thread.currentThread().getStackTrace()[1].getMethodName();
        System.out.println(String.format("%s: CALL.", fn));

        assertEquals(true, true);

        System.out.println(String.format("%s: RET.", fn));
    }

    @Test
    public void A1100_doCreateClientReturnsTrue()
            throws URISyntaxException, ClientProtocolException, IOException
    {
        String fn = Thread.currentThread().getStackTrace()[1].getMethodName();
        System.out.println(String.format("%s: CALL.", fn));

        ClickatellClient clickatellClient = new ClickatellClient(authToken);

        System.out.println(String.format("%s: RET.", fn));
    }

    @Test(expected = NullPointerException.class)
    public void A1110_doCreateClientNullTokenThrowsNullPointerException()
            throws URISyntaxException
{'fraction_non_alphanumeric': 0.11773778920308484, 'fraction_numerical': 0.009254498714652956, 'mean_word_length': 3.8096415327564896, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '418318', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1158, 'n_words': 191}