Merge branch 'jhipster-generated'
# Conflicts: # src/main/java/org/hostsharing/hsadminng/domain/Asset.java # src/main/java/org/hostsharing/hsadminng/domain/Customer.java # src/main/java/org/hostsharing/hsadminng/domain/Membership.java # src/main/java/org/hostsharing/hsadminng/domain/Share.java # src/main/java/org/hostsharing/hsadminng/service/dto/CustomerCriteria.java # src/main/resources/config/liquibase/changelog/20190403083735_added_entity_Customer.xml # src/main/webapp/app/entities/customer/customer-detail.component.html # src/main/webapp/app/entities/customer/customer-update.component.html # src/main/webapp/app/entities/customer/customer.component.html # src/main/webapp/app/entities/entity.module.ts # src/test/java/org/hostsharing/hsadminng/web/rest/CustomerResourceIntTest.java # src/test/java/org/hostsharing/hsadminng/web/rest/ShareResourceIntTest.java
This commit is contained in:
commit
3fa514c982
@ -114,6 +114,11 @@ public class AssetResourceIntTest {
|
||||
.action(DEFAULT_ACTION)
|
||||
.amount(DEFAULT_AMOUNT)
|
||||
.comment(DEFAULT_COMMENT);
|
||||
// Add required entity
|
||||
Membership membership = MembershipResourceIntTest.createEntity(em);
|
||||
em.persist(membership);
|
||||
em.flush();
|
||||
asset.setMember(membership);
|
||||
return asset;
|
||||
}
|
||||
|
||||
|
@ -108,6 +108,11 @@ public class MembershipResourceIntTest {
|
||||
.customer(customer)
|
||||
.sinceDate(DEFAULT_SINCE_DATE)
|
||||
.untilDate(DEFAULT_UNTIL_DATE);
|
||||
// Add required entity
|
||||
Customer customer = CustomerResourceIntTest.createEntity(em);
|
||||
em.persist(customer);
|
||||
em.flush();
|
||||
membership.setCustomer(customer);
|
||||
return membership;
|
||||
}
|
||||
|
||||
|
@ -1,11 +1,9 @@
|
||||
/* tslint:disable max-line-length */
|
||||
import { TestBed, getTestBed } from '@angular/core/testing';
|
||||
import { getTestBed, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
|
||||
import { HttpClient, HttpResponse } from '@angular/common/http';
|
||||
import { of } from 'rxjs';
|
||||
import { take, map } from 'rxjs/operators';
|
||||
import { map, take } from 'rxjs/operators';
|
||||
import { CustomerService } from 'app/entities/customer/customer.service';
|
||||
import { ICustomer, Customer } from 'app/shared/model/customer.model';
|
||||
import { Customer, ICustomer } from 'app/shared/model/customer.model';
|
||||
|
||||
describe('Service Tests', () => {
|
||||
describe('Customer Service', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user