Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
re-commit lost test after local git inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
indyarni committed Dec 1, 2017
1 parent 62cde7f commit 9636f37
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package de.dm.microservices.business;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import de.dm.microservices.business.DefaultNodeContentFactory;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

public class DefaultNodeContentFactoryTest {

private static final String SERVICE_NAME = "halo i bims der servis";
private ObjectMapper mapper = new ObjectMapper();

private DefaultNodeContentFactory factory = new DefaultNodeContentFactory(mapper);

@Test
public void create() {
ObjectNode result = factory.create(SERVICE_NAME);

assertThat(result.get("id").textValue(), is(SERVICE_NAME));
assertThat(result.get("label").textValue(), is(SERVICE_NAME));
}
}

0 comments on commit 9636f37

Please sign in to comment.