-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test to use Flow crud classes
- Loading branch information
Showing
11 changed files
with
75 additions
and
63 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
packages/java/tests/spring/react-grid-test/frontend/views/GridUseDataProviderHookView.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 31 additions & 33 deletions
64
packages/java/tests/spring/react-grid-test/frontend/views/ReadOnlyGridCustomFilter.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ges/java/tests/spring/react-grid-test/frontend/views/ReadOnlyGridSinglePropertyFilter.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
...ing/react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/AppointmentService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
package com.vaadin.hilla.test.reactgrid; | ||
|
||
import com.vaadin.hilla.BrowserCallable; | ||
import com.vaadin.hilla.crud.CrudRepositoryService; | ||
import org.checkerframework.checker.units.qual.A; | ||
import org.springframework.stereotype.Service; | ||
|
||
import com.vaadin.flow.server.auth.AnonymousAllowed; | ||
import com.vaadin.flow.spring.data.jpa.CrudRepositoryService; | ||
import com.vaadin.hilla.BrowserCallable; | ||
|
||
@BrowserCallable | ||
@Service | ||
@AnonymousAllowed | ||
public class AppointmentService extends | ||
CrudRepositoryService<Appointment, Long, AppointmentRepository> { | ||
AppointmentService(AppointmentRepository repository) { | ||
super(repository); | ||
} | ||
} |
8 changes: 5 additions & 3 deletions
8
.../spring/react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/CompanyService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.vaadin.hilla.test.reactgrid; | ||
|
||
import com.vaadin.hilla.BrowserCallable; | ||
import com.vaadin.hilla.crud.CrudRepositoryService; | ||
|
||
import com.vaadin.flow.server.auth.AnonymousAllowed; | ||
import com.vaadin.flow.spring.data.jpa.CrudRepositoryService; | ||
import com.vaadin.hilla.BrowserCallable; | ||
|
||
@BrowserCallable | ||
@AnonymousAllowed | ||
public class CompanyService | ||
extends CrudRepositoryService<Company, Long, CompanyRepository> { | ||
CompanyService(CompanyRepository repository) { | ||
super(repository); | ||
} | ||
} |
9 changes: 6 additions & 3 deletions
9
.../react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/PersonListOnlyService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
package com.vaadin.hilla.test.reactgrid; | ||
|
||
import com.vaadin.hilla.BrowserCallable; | ||
import com.vaadin.hilla.crud.ListRepositoryService; | ||
|
||
import com.vaadin.flow.server.auth.AnonymousAllowed; | ||
import com.vaadin.flow.spring.data.jpa.ListRepositoryService; | ||
import com.vaadin.hilla.BrowserCallable; | ||
|
||
@BrowserCallable | ||
@AnonymousAllowed | ||
public class PersonListOnlyService | ||
extends ListRepositoryService<Person, Long, PersonRepository> { | ||
|
||
PersonListOnlyService(PersonRepository repository) { | ||
super(repository); | ||
} | ||
|
||
} |
8 changes: 5 additions & 3 deletions
8
...s/spring/react-grid-test/src/main/java/com/vaadin/hilla/test/reactgrid/PersonService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package com.vaadin.hilla.test.reactgrid; | ||
|
||
import com.vaadin.hilla.BrowserCallable; | ||
import com.vaadin.hilla.crud.CrudRepositoryService; | ||
|
||
import com.vaadin.flow.server.auth.AnonymousAllowed; | ||
import com.vaadin.flow.spring.data.jpa.CrudRepositoryService; | ||
import com.vaadin.hilla.BrowserCallable; | ||
|
||
@BrowserCallable | ||
@AnonymousAllowed | ||
public class PersonService | ||
extends CrudRepositoryService<Person, Long, PersonRepository> { | ||
|
||
PersonService(PersonRepository repository) { | ||
super(repository); | ||
} | ||
} |
9 changes: 6 additions & 3 deletions
9
...-test/src/main/java/com/vaadin/hilla/test/reactgrid/entityreferences/EmployeeService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
package com.vaadin.hilla.test.reactgrid.entityreferences; | ||
|
||
import com.vaadin.hilla.BrowserCallable; | ||
import com.vaadin.hilla.crud.ListRepositoryService; | ||
|
||
import com.vaadin.flow.server.auth.AnonymousAllowed; | ||
import com.vaadin.flow.spring.data.jpa.ListRepositoryService; | ||
import com.vaadin.hilla.BrowserCallable; | ||
|
||
@BrowserCallable | ||
@AnonymousAllowed | ||
public class EmployeeService | ||
extends ListRepositoryService<Employee, Long, EmployeeRepository> { | ||
|
||
public EmployeeService(EmployeeRepository repository) { | ||
super(repository); | ||
} | ||
|
||
} |
6 changes: 3 additions & 3 deletions
6
...ct-grid-test/src/test/java/com/vaadin/hilla/test/reactgrid/GridUseDataProviderHookIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters