#519 - Polishing.

Switch wording to imperative instead of sync. Consistently use interface names.

Original pull request: #520.
This commit is contained in:
Mark Paluch
2019-08-13 12:09:54 +02:00
parent 96daedb93f
commit b9da3dde1e
9 changed files with 18 additions and 17 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package example.springdata.mongodb.sync;
package example.springdata.mongodb.imperative;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package example.springdata.mongodb.sync;
package example.springdata.mongodb.imperative;
import example.springdata.mongodb.Customer;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package example.springdata.mongodb.sync;
package example.springdata.mongodb.imperative;
import static org.assertj.core.api.Assertions.*;
@@ -23,6 +23,7 @@ import example.springdata.mongodb.QCustomer;
import org.junit.Before;
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.data.mongodb.core.MongoOperations;

View File

@@ -21,9 +21,12 @@ import example.springdata.mongodb.Customer;
import example.springdata.mongodb.QCustomer;
import reactor.test.StepVerifier;
import java.util.Arrays;
import org.junit.Before;
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.data.mongodb.core.MongoOperations;
@@ -50,9 +53,7 @@ public class ReactiveCustomerRepositoryTests {
oliver = new Customer("Oliver August", "Matthews");
carter = new Customer("Carter", "Beauford");
repository.save(dave).then().as(StepVerifier::create).verifyComplete();
repository.save(oliver).then().as(StepVerifier::create).verifyComplete();
repository.save(carter).then().as(StepVerifier::create).verifyComplete();
repository.saveAll(Arrays.asList(dave, oliver, carter)).then().as(StepVerifier::create).verifyComplete();
}
@Test