Skip to content

Commit

Permalink
#131: removed guava dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pfotenhauer committed Aug 20, 2020
1 parent 826bf47 commit e872769
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@
<artifactId>allure-selenide</artifactId>
<version>${allure.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.runner.Description;
import org.junit.runner.Result;

import com.google.common.base.Joiner;
import com.xceptance.neodymium.NeodymiumRunner;

public abstract class NeodymiumTest
Expand Down Expand Up @@ -107,10 +107,12 @@ public static void writeMapToPropertiesFile(Map<String, String> map, File file)
{
try
{
String join = Joiner.on("\r\n").withKeyValueSeparator("=").join(map);
String propertiesString = map.keySet().stream()
.map(key -> key + "=" + map.get(key))
.collect(Collectors.joining("\r\n"));

FileOutputStream outputStream = new FileOutputStream(file);
outputStream.write(join.getBytes());
outputStream.write(propertiesString.getBytes());
outputStream.close();
}
catch (Exception e)
Expand Down

0 comments on commit e872769

Please sign in to comment.