parent
bc5e87c7ef
commit
7cf3afbd79
|
@ -4,12 +4,12 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>baeldung</groupId>
|
||||
<artifactId>spring-check-null</artifactId>
|
||||
<artifactId>call-all-getters</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>spring-check-if-a-property-is-null</name>
|
||||
<description>Calling getters using Introspector</description>
|
||||
<name>call-all-getters</name>
|
||||
<description>Calling all getters using Introspector</description>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
|
@ -2,13 +2,10 @@ package com.baeldung;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
import com.baeldung.reflection.model.Customer;
|
||||
import com.baeldung.reflection.util.Utils;
|
||||
|
||||
@SpringBootApplication
|
||||
public class SpringCheckIfAPropertyIsNullApplication {
|
||||
public class CallAllGettersApplication {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
|
@ -5,16 +5,11 @@ import java.util.List;
|
|||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import com.baeldung.reflection.model.Customer;
|
||||
import com.baeldung.reflection.util.Utils;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class SpringCheckIfAPropertyIsNullApplicationTests {
|
||||
public class CallAllGettersApplicationTests {
|
||||
|
||||
@Test
|
||||
public void givenCustomer_whenAFieldIsNull_thenFieldNameInResult() throws Exception {
|
Loading…
Reference in New Issue