use of com.microsoft.sqlserver.jdbc.SQLServerDataSource in project mssql-jdbc by Microsoft.
the class NativeMSSQLDataSourceTest method testSerialization.
@Test
public void testSerialization() throws IOException {
try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
ObjectOutput objectOutput = new ObjectOutputStream(outputStream)) {
SQLServerDataSource ds = new SQLServerDataSource();
ds.setLogWriter(new PrintWriter(new ByteArrayOutputStream()));
objectOutput.writeObject(ds);
objectOutput.flush();
}
}
Aggregations