Fixing CheckStyle issues in Test classes.
This commit is contained in:
		
				
					committed by
					
						
						O.Okinskas
					
				
			
			
				
	
			
			
			
						parent
						
							ff579fabcf
						
					
				
				
					commit
					c4dd94a019
				
			@@ -29,8 +29,8 @@ import org.junit.jupiter.api.Test;
 | 
			
		||||
 */
 | 
			
		||||
public class AppTest {
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
    public void test() {
 | 
			
		||||
        App.main(new String[]{});
 | 
			
		||||
    }
 | 
			
		||||
  @Test
 | 
			
		||||
  public void test() {
 | 
			
		||||
    App.main(new String[]{});
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -24,14 +24,17 @@ package com.iluwatar.ambassador;
 | 
			
		||||
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Test for {@link Client}
 | 
			
		||||
 */
 | 
			
		||||
public class ClientTest {
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
    public void test() {
 | 
			
		||||
  @Test
 | 
			
		||||
  public void test() {
 | 
			
		||||
 | 
			
		||||
        Client client = new Client();
 | 
			
		||||
        long result = client.useService(10);
 | 
			
		||||
        assert result == 100 || result == -1;
 | 
			
		||||
    Client client = new Client();
 | 
			
		||||
    long result = client.useService(10);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
    assert result == 100 || result == -1;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -24,15 +24,17 @@ package com.iluwatar.ambassador;
 | 
			
		||||
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Test for {@link RemoteService}
 | 
			
		||||
 */
 | 
			
		||||
public class RemoteServiceTest {
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
    public void test() {
 | 
			
		||||
  @Test
 | 
			
		||||
  public void test() {
 | 
			
		||||
 | 
			
		||||
        RemoteService remoteService = RemoteService.getRemoteService();
 | 
			
		||||
        long result = remoteService.doRemoteFunction(10);
 | 
			
		||||
 | 
			
		||||
        assert result == 100 || result == -1;
 | 
			
		||||
    }
 | 
			
		||||
    RemoteService remoteService = RemoteService.getRemoteService();
 | 
			
		||||
    long result = remoteService.doRemoteFunction(10);
 | 
			
		||||
 | 
			
		||||
    assert result == 100 || result == -1;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -24,12 +24,15 @@ package com.iluwatar.ambassador;
 | 
			
		||||
 | 
			
		||||
import org.junit.jupiter.api.Test;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Test for {@link ServiceAmbassador}
 | 
			
		||||
 */
 | 
			
		||||
public class ServiceAmbassadorTest {
 | 
			
		||||
 | 
			
		||||
    @Test
 | 
			
		||||
    public void test() {
 | 
			
		||||
        ServiceAmbassador ambassador = new ServiceAmbassador();
 | 
			
		||||
        long result = ambassador.doRemoteFunction(10);
 | 
			
		||||
        assert result == 100 || result == -1;
 | 
			
		||||
    }
 | 
			
		||||
  @Test
 | 
			
		||||
  public void test() {
 | 
			
		||||
    ServiceAmbassador ambassador = new ServiceAmbassador();
 | 
			
		||||
    long result = ambassador.doRemoteFunction(10);
 | 
			
		||||
    assert result == 100 || result == -1;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user