<commit_before>package com.breadwallet.crypto.implj;

import com.breadwallet.crypto.Address;
import com.google.common.base.Optional;

import org.junit.Test;
import static org.junit.Assert.*;

public class AddressAIT {

    @Test
    public void testAddressCreateAsEth() {
        Optional<AddressImpl> oe1 = AddressImpl.createAsEth("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62");
        assertTrue(oe1.isPresent());
        Address e1 = oe1.get();
        assertEquals("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62", e1.toString());

        Optional<AddressImpl> oe2 = AddressImpl.createAsEth("0xd3CFBA03Fc13dc01F0C67B88CBEbE776D8F3DE8f");
        assertTrue(oe2.isPresent());
        Address e2 = oe2.get();
        assertEquals("0xd3CFBA03Fc13dc01F0C67B88CBEbE776D8F3DE8f", e2.toString());

        Optional<AddressImpl> oe3 = AddressImpl.createAsEth("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62");
        assertTrue(oe3.isPresent());
        Address e3 = oe3.get();
        assertEquals("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62", e3.toString());

        assertEquals(e1, e1);
        assertEquals(e1, e3);
        assertEquals(e3, e1);

        assertNotEquals(e1, e2);
        assertNotEquals(e2, e1);
    }

    @Test
    public void testAddressCreateAsBtc() {
        Optional<AddressImpl> ob1 = AddressImpl.createAsBtc("mm7DDqVkFd35XcWecFipfTYM5dByBzn7nq");
        assertTrue(ob1.isPresent());
        Address b1 = ob1.get();
        assertEquals("mm7DDqVkFd35XcWecFipfTYM5dByBzn7nq", b1.toString());

        // TODO: Expand coverage
    }

    @Test
    public void testAddressMixedEquals() {
        Address e1 = AddressImpl.createAsEth("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62").get();
        Address b1 = AddressImpl.createAsBtc("mm7DDqVkFd35XcWecFipfTYM5dByBzn7nq").get();

        assertNotEquals(e1, b1);
        assertNotEquals(b1, e1);
    }
}<commit_msg>CORE-254: Set tests back to mainnet address<commit_after>package com.breadwallet.crypto.implj;

import com.breadwallet.crypto.Address;
import com.google.common.base.Optional;

import org.junit.Test;
import static org.junit.Assert.*;

public class AddressAIT {

    @Test
    public void testAddressCreateAsEth() {
        Optional<AddressImpl> oe1 = AddressImpl.createAsEth("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62");
        assertTrue(oe1.isPresent());
        Address e1 = oe1.get();
        assertEquals("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62", e1.toString());

        Optional<AddressImpl> oe2 = AddressImpl.createAsEth("0xd3CFBA03Fc13dc01F0C67B88CBEbE776D8F3DE8f");
        assertTrue(oe2.isPresent());
        Address e2 = oe2.get();
        assertEquals("0xd3CFBA03Fc13dc01F0C67B88CBEbE776D8F3DE8f", e2.toString());

        Optional<AddressImpl> oe3 = AddressImpl.createAsEth("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62");
        assertTrue(oe3.isPresent());
        Address e3 = oe3.get();
        assertEquals("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62", e3.toString());

        assertEquals(e1, e1);
        assertEquals(e1, e3);
        assertEquals(e3, e1);

        assertNotEquals(e1, e2);
        assertNotEquals(e2, e1);
    }

    @Test
    public void testAddressCreateAsBtc() {
        Optional<AddressImpl> ob1 = AddressImpl.createAsBtc("1CC3X2gu58d6wXUWMffpuzN9JAfTUWu4Kj");
        assertTrue(ob1.isPresent());
        Address b1 = ob1.get();
        assertEquals("1CC<KEY>", b1.toString());

        // TODO: Expand coverage
    }

    @Test
    public void testAddressMixedEquals() {
        Address e1 = AddressImpl.createAsEth("0xb0F225defEc7625C6B5E43126bdDE398bD90eF62").get();
        Address b1 = AddressImpl.createAsBtc("1CC3X<KEY>").get();

        assertNotEquals(e1, b1);
        assertNotEquals(b1, e1);
    }
}
{'fraction_non_alphanumeric': 0.11283422459893049, 'fraction_numerical': 0.10882352941176471, 'mean_word_length': 3.67625, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7592532', 'n_tokens_mistral': 1571, 'n_tokens_neox': 1393, 'n_words': 176}