Revert "BAEL-812: List of Rules Engines in Java (#2319)" (#2455)

This reverts commit dc105bc6f2.
This commit is contained in:
adamd1985
2017-08-20 15:44:20 +02:00
committed by GitHub
parent b7ad275bdd
commit e6c2fd3bbe
16 changed files with 0 additions and 337 deletions

View File

@@ -1,25 +0,0 @@
package com.baeldung.autowired;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class TypesOfBeanInjectionSpringIntegrationTest {
@Autowired
UserService userService;
private static final String[] expected = new String[] { "Snoopy", "Woodstock", "Charlie Brown" };
@Test
public void givenDI_whenInjectObject_thenUserNamesAreListed() {
Assert.assertArrayEquals(expected, userService.listUsers()
.stream()
.map(User::getName)
.toArray());
}
}