Hello
I am new to the Diffblue Cover plug-in in Intellij Community Edition IDE.
For a simple Employee class it is complaining as listed below- have I missed something?
Creating tests for method: Employee.
16:37 Cannot generate essential test for : Nothing to assert: the constructed class does not have observers (e.g. getters or public fields). Add observers (e.g. getters or public fields) to the class.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.setId
16:37 Cannot generate essential test for setId: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.toString
16:37 Cannot generate essential test for toString: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.getDepartment
16:37 Cannot generate essential test for getDepartment: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.main
16:37 Cannot generate essential test for main: Nothing to assert: neither the return value type of the method under test nor the types of its parameters have observers (e.g. getters or public fields). Add observers (e.g. getters or public fields) to the declaring class of the method under test, its return type or any of its parameter types.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.setAge
16:37 Cannot generate essential test for setAge: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.setDepartment
16:37 Cannot generate essential test for setDepartment: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.
16:37 Cannot generate essential test for : Nothing to assert: the constructed class does not have observers (e.g. getters or public fields). Add observers (e.g. getters or public fields) to the class.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.
16:37 Cannot generate essential test for : Nothing to assert: the constructed class does not have observers (e.g. getters or public fields). Add observers (e.g. getters or public fields) to the class.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.getId
16:37 Cannot generate essential test for getId: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.getName
16:37 Cannot generate essential test for getName: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.getAge
16:37 Cannot generate essential test for getAge: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Creating tests for method: Employee.setName
16:37 Cannot generate essential test for setName: Unable to instantiate class containing the method under test. Please provide a package-visible constructor or factory method for testing which (ideally) takes no arguments, and does not throw, return null or return a subtype.
16:37 No tests have been generated: Cover was unable to generate any tests for your selection. Please refer to the documentation for further assistance.
16:37 Test creation complete: Created 0 tests in total for 0 methods from 0 source classes