Skip to content

Commit 931ab84

Browse files
committed
added unit test-case for DataSourceService class
1 parent bb065d3 commit 931ab84

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

Diff for: polling-publisher/polling-service/src/main/java/com/iluwatar/polling/DataRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
* Data repository to keep or store data.
3232
* */
3333
@Repository
34-
public class DataRepository {
34+
public final class DataRepository {
3535
// Simulate a repository for data access
3636
}

Diff for: polling-publisher/polling-service/src/test/java/com/iluwatar/polling/AppTest.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
*/
2525
package com.iluwatar.polling;
2626

27-
public class AppTest{
27+
import org.junit.api.Test;
2828

29+
public class AppTest {
30+
31+
@Test
32+
public void polling() {
33+
System.out.println(".(checking.. code is not running)");
34+
}
2935
}

Diff for: polling-publisher/polling-service/src/test/java/com/iluwatar/polling/DataSourceServiceTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
/*
3232
* this class contains the unit test for DataSoourceServiceTest class.
3333
*/
34-
public class DataSourceServiceTest{
34+
public class DataSourceServiceTest {
3535

3636
DataSourceService dataSourceService = new DataSourceService();
3737

3838
@Test
39-
public void test1(){
40-
System.out.println(".()");
39+
public void test1() {
40+
System.out.println(".(checking.. code is running)");
4141
}
4242
}

0 commit comments

Comments
 (0)