summaryrefslogtreecommitdiff
path: root/app/src/test/java/se/leap/bitmaskclient/DefaultedURLTest.java
blob: cbf4762186317ef5d847e61fbcfd3c58f32303bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package se.leap.bitmaskclient;

import org.junit.Test;

import java.net.MalformedURLException;
import java.net.URL;

import static org.junit.Assert.*;

/**
 * Created by cyberta on 11.02.18.
 */
public class DefaultedURLTest {

    @Test
    public void testEquals_false() throws MalformedURLException {
        DefaultedURL defaultedURL = new DefaultedURL();
        DefaultedURL customURL = new DefaultedURL();
        customURL.setUrl(new URL("https://customurl.com"));

        assertFalse(defaultedURL.equals(customURL));
    }

    @Test
    public void testEquals_true() throws MalformedURLException {
        DefaultedURL defaultedURL = new DefaultedURL();
        DefaultedURL customURL = new DefaultedURL();
        assertTrue(defaultedURL.equals(customURL));
    }

}