good monday morning
Here is something new:
the latest generated tests try to import a file from within the Diffblue-runtime.
As this is not included in the project as a libary, it does not compile.
The ‘b’ is later used to check, if a PrintStream from some object is an instanceof b.
Never had something like that before.
I can upload the testFile to some non-public destination, if needed.
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.ArgumentMatchers.isA;
import static org.mockito.Mockito.anyInt;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import basement.cfw.EventLog;
import com.diffblue.cover.commons.h.b; <<-----
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.core.Base64Variant;
void testNewVehicleServlet() throws MissingResourceException {
// Arrange and Act
VehicleServlet actualVehicleServlet = new VehicleServlet();
// Assert
EventLog eventLog = actualVehicleServlet.eventLog;
assertTrue(eventLog.getLogStream() instanceof b); <<-----
ObjectMapper objectMapper = actualVehicleServlet.om;
SerializationConfig serializationConfig = objectMapper.getSerializationConfig();
assertTrue(serializationConfig.getDefaultPrettyPrinter() instanceof DefaultPrettyPrinter);
JsonFactory factory = objectMapper.getFactory();
assertTrue(factory instanceof MappingJsonFactory);
DeserializationConfig deserializationConfig = objectMapper.getDeserializationConfig();
ContextAttributes attributes = deserializationConfig.getAttributes();