@Test public void testFindOne02() { when(customerRepository.findById("xxx")).thenReturn(Optional.empty()); Customer result = customerService.findOne("xxx"); assertThat(result, is(nullValue())); }
@Override public Customer findOne(String customerCode) { return customerRepository.findById(customerCode).orElse(null); }
CustomerServiceImpl implements CustomerService { @Override public Customer findOne(String customerCode) { return customerRepository.findById(customerCode).orElse(null); } }
CustomerServiceImpl implements CustomerService { @Override public Customer findOne(String customerCode) { return customerRepository.findById(customerCode).orElse(null); }  }
CustomerServiceImpl implements CustomerService { @Override public Customer findOne(String customerCode) { return customerRepository.findById(customerCode).orElse(null); }  @Override Customer findOne(String customerCode); @Override Customer register(Customer customer, String rawPassword); }
CustomerServiceImpl implements CustomerService { @Override public Customer findOne(String customerCode) { return customerRepository.findById(customerCode).orElse(null); }  @Override Customer findOne(String customerCode); @Override Customer register(Customer customer, String rawPassword);  }