| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package io.github.ro4.spelvalidation; |
||
| 7 | @Configuration |
||
| 8 | public class TestConfiguration { |
||
| 9 | @Bean |
||
| 10 | public SimpleService simpleService() { |
||
| 11 | return new SimpleService(); |
||
| 12 | } |
||
| 13 | |||
| 14 | @Bean |
||
| 15 | public SpELValidator spELValidator() { |
||
| 16 | return new SpELValidator(); |
||
| 17 | } |
||
| 18 | |||
| 19 | |||
| 20 | @Service |
||
| 21 | @SuppressWarnings("unused") |
||
| 22 | public static class SimpleService { |
||
| 23 | public boolean isNameUnique(String name) { |
||
| 24 | return "hello".equals(name); |
||
| 25 | } |
||
| 28 |