Add the tests of equals and hashCode of ServiceInfo
Add the tests of equals and hashCode of ServiceInfo

package org.kt3k.gradle.plugin.coveralls.domain

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

class ServiceInfoTest {

	@Test
	void testConstructor() {
		ServiceInfo serviceInfo = new ServiceInfo('x-ci', '1729', 'ABCDEF')

		assertNotNull serviceInfo
		assertEquals 'x-ci', serviceInfo.serviceName
		assertEquals '1729', serviceInfo.serviceJobId
		assertEquals 'ABCDEF', serviceInfo.repoToken
	}


	@Test
	void testEquals() {
		assertEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "e", "f")
		assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("_", "b", "c", "d", "e", "f")
		assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "_", "c", "d", "e", "f")
		assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "_", "d", "e", "f")
		assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "_", "e", "f")
		assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "_", "f")
		assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "e", "_")
	}


	@Test
	void testHashCode() {
		ServiceInfo serviceInfo = new ServiceInfo("a", "b", "c", "d", "e", "f")

		assertNotNull serviceInfo.hashCode()
		assertTrue serviceInfo.hashCode().toString().isInteger()
	}

}

package org.kt3k.gradle.plugin.coveralls.domain

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

class ServiceInfoTest {

	@Test
	void testConstructor() {
		ServiceInfo serviceInfo = new ServiceInfo('x-ci', '1729', 'ABCDEF')

		assertNotNull serviceInfo
		assertEquals 'x-ci', serviceInfo.serviceName
		assertEquals '1729', serviceInfo.serviceJobId
		assertEquals 'ABCDEF', serviceInfo.repoToken
	}

}
