Skip to content

Commit

Permalink
minor changes in formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej Čalfa committed Nov 24, 2022
1 parent dd4811b commit b491143
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,66 +183,66 @@ public void testPropertiesWithTarget() {
}

@Test
public void testMockPropBuildersWithTargets(){
public void testMockPropBuildersWithTargets() {
PropertiesBuilders pb = mock(PropertiesBuilders.class);
when(pb.buildPropertiesWithTargets(null,null,null,null)).thenThrow(NullPointerException.class);
}
@Test
public void testMockPropWithTargets(){
public void testMockPropWithTargets() {
PropertiesWithTargets pt = mock(PropertiesWithTargets.class);
when(pt.getTargets().isEmpty()).thenThrow(NullPointerException.class);
}

@Test
public void testMockBasePropUrl(){
public void testMockBasePropUrl() {
BaseProperties bp = mock(BaseProperties.class);
bp.setBaseUrl("https://crowdin.com");
String url = "https://crowdin.com";
when(bp.getBaseUrl()).thenReturn(url);
}

@Test
public void testMockBasePropPath(){
public void testMockBasePropPath() {
BaseProperties bp = mock(BaseProperties.class);
bp.setBasePath("./path");
String path = "./path";
when(bp.getBasePath()).thenReturn(path);
}

@Test
public void testMockBasePropApiToken(){
public void testMockBasePropApiToken() {
BaseProperties bp = mock(BaseProperties.class);
bp.setApiToken("123Token");
String token = "123Token";
when(bp.getApiToken()).thenReturn(token);
}

@Test
public void testMockProjectPropToken(){
public void testMockProjectPropToken() {
ProjectProperties pp = mock(ProjectProperties.class);
pp.setApiToken("123Token");
String token = "123Token";
when(pp.getApiToken()).thenReturn(token);
}

@Test
public void testMockProjectPropPath(){
public void testMockProjectPropPath() {
ProjectProperties pp = mock(ProjectProperties.class);
pp.setBasePath("./path");
String path = "./path";
when(pp.getBasePath()).thenReturn(path);
}

@Test
public void testMockProjectPropUrl(){
public void testMockProjectPropUrl() {
ProjectProperties pp = mock(ProjectProperties.class);
pp.setBaseUrl("https://crowdin.com");
String url = "https://crowdin.com";
when(pp.getBaseUrl()).thenReturn(url);
}

@Test
public void testMockPropBuilderBasePropUrl(){
public void testMockPropBuilderBasePropUrl() {
PropertiesBuilders pb = mock(PropertiesBuilders.class);
File configFile = new File("folder/crowdinTest.yml");
String minimalConfigFileText = NewPropertiesWithTargetsUtilBuilder
Expand All @@ -257,8 +257,9 @@ public void testMockPropBuilderBasePropUrl(){

when(bp.getBaseUrl()).thenReturn( "https://crowdin.com");
}

@Test
public void testMockPropBuilderBasePropIdParam(){
public void testMockPropBuilderBasePropIdParam() {
PropertiesBuilders pb = mock(PropertiesBuilders.class);
File configFile = new File("folder/crowdinTest.yml");
String minimalConfigFileText = NewPropertiesWithTargetsUtilBuilder
Expand Down

0 comments on commit b491143

Please sign in to comment.