// Path: src/test/java/com/linuxense/javadbf/mocks/NullOutputStream.java
// public class NullOutputStream extends OutputStream {
//     
// 	private long count = 0;
// 	
// 
//     /**
//      * Constructor
//      */
//     public NullOutputStream() {
//         super();
//     }
//     /**
//      * Does nothing - output to <code>/dev/null</code>.
//      * @param b The bytes to write
//      * @param off The start offset
//      * @param len The number of bytes to write
//      */
//     @Override
//     public void write(byte[] b, int off, int len) {
//         this.count+= len;
//     }
// 
//     /**
//      * Does nothing - output to <code>/dev/null</code>.
//      * @param b The byte to write
//      */
//     @Override
//     public void write(int b) {
//         this.count++;
//     }
// 
//     /**
//      * Does nothing - output to <code>/dev/null</code>.
//      * @param b The bytes to write
//      * @throws IOException never
//      */
//     @Override
//     public void write(byte[] b) throws IOException {
//         if (b != null) {
//         	this.count += b.length;
//         }
//     }
//     
//     public long getCount() {
//     	return this.count;
//     }
// 
// }


import java.io.IOException;
import java.util.Date;
import org.junit.Assert;
import org.junit.Test;
import com.linuxense.javadbf.mocks.NullOutputStream;
/*

(C) Copyright 2017 Alberto Fernández <infjaf@gmail.com>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library.  If not, see <http://www.gnu.org/licenses/>.

*/
package com.linuxense.javadbf;




public class DBFWriterStreamTest {

	@Test
	public void testAllDataTypes() throws IOException {
// Path: src/test/java/com/linuxense/javadbf/mocks/NullOutputStream.java
// public class NullOutputStream extends OutputStream {
//     
// 	private long count = 0;
// 	
// 
//     /**
//      * Constructor
//      */
//     public NullOutputStream() {
//         super();
//     }
//     /**
//      * Does nothing - output to <code>/dev/null</code>.
//      * @param b The bytes to write
//      * @param off The start offset
//      * @param len The number of bytes to write
//      */
//     @Override
//     public void write(byte[] b, int off, int len) {
//         this.count+= len;
//     }
// 
//     /**
//      * Does nothing - output to <code>/dev/null</code>.
//      * @param b The byte to write
//      */
//     @Override
//     public void write(int b) {
//         this.count++;
//     }
// 
//     /**
//      * Does nothing - output to <code>/dev/null</code>.
//      * @param b The bytes to write
//      * @throws IOException never
//      */
//     @Override
//     public void write(byte[] b) throws IOException {
//         if (b != null) {
//         	this.count += b.length;
//         }
//     }
//     
//     public long getCount() {
//     	return this.count;
//     }
// 
// }


// Path: src/test/java/com/linuxense/javadbf/DBFWriterStreamTest.java
import java.io.IOException;
import java.util.Date;
import org.junit.Assert;
import org.junit.Test;
import com.linuxense.javadbf.mocks.NullOutputStream;

/*

(C) Copyright 2017 Alberto Fernández <infjaf@gmail.com>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library.  If not, see <http://www.gnu.org/licenses/>.

*/
package com.linuxense.javadbf;




public class DBFWriterStreamTest {

	@Test
	public void testAllDataTypes() throws IOException {
		NullOutputStream output = new NullOutputStream();