// Path: core/src/main/java/se/tfiskgul/mux2fs/fs/base/FileInfo.java
// @Immutable
// public class FileInfo {
// 
// 	private final long inode;
// 	private final FileTime mtime;
// 	private final FileTime ctime;
// 	private final long size;
// 
// 	public FileInfo(long inode, FileTime mtime, FileTime ctime, long size) {
// 		super();
// 		this.inode = inode;
// 		this.mtime = mtime;
// 		this.ctime = ctime;
// 		this.size = size;
// 	}
// 
// 	public FileInfo(long inode, Instant mtime, Instant ctime, long size) {
// 		super();
// 		this.inode = inode;
// 		this.mtime = FileTime.from(mtime);
// 		this.ctime = FileTime.from(ctime);
// 		this.size = size;
// 	}
// 
// 	public static FileInfo of(Path path)
// 			throws IOException {
// 		Map<String, Object> attributes = Files.readAttributes(path, "unix:*"); // Follow links in this case
// 		return new FileInfo((long) attributes.get("ino"), (FileTime) attributes.get("lastModifiedTime"), (FileTime) attributes.get("ctime"),
// 				(long) attributes.get("size"));
// 	}
// 
// 	public long getInode() {
// 		return inode;
// 	}
// 
// 	public FileTime getMtime() {
// 		return mtime;
// 	}
// 
// 	public FileTime getCtime() {
// 		return ctime;
// 	}
// 
// 	public long getSize() {
// 		return size;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		return Objects.hash(inode, mtime, ctime, size);
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj) {
// 			return true;
// 		}
// 		if (obj == null) {
// 			return false;
// 		}
// 		if (getClass() != obj.getClass()) {
// 			return false;
// 		}
// 		FileInfo other = (FileInfo) obj;
// 		return Objects.equals(inode, other.inode) && Objects.equals(mtime, other.mtime) && Objects.equals(ctime, other.ctime)
// 				&& Objects.equals(size, other.size);
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "FileInfo [inode=" + inode + ", mtime=" + mtime + ", ctime=" + ctime + ", size=" + size + "]";
// 	}
// }


import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import org.junit.Test;
import se.tfiskgul.mux2fs.fs.base.FileInfo;
/*
MIT License

Copyright (c) 2017 Carl-Frederik Hallberg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
 */
package se.tfiskgul.mux2fs.mux;




public class MuxedFileTest {

	@Test
	public void testEquals() {
// Path: core/src/main/java/se/tfiskgul/mux2fs/fs/base/FileInfo.java
// @Immutable
// public class FileInfo {
// 
// 	private final long inode;
// 	private final FileTime mtime;
// 	private final FileTime ctime;
// 	private final long size;
// 
// 	public FileInfo(long inode, FileTime mtime, FileTime ctime, long size) {
// 		super();
// 		this.inode = inode;
// 		this.mtime = mtime;
// 		this.ctime = ctime;
// 		this.size = size;
// 	}
// 
// 	public FileInfo(long inode, Instant mtime, Instant ctime, long size) {
// 		super();
// 		this.inode = inode;
// 		this.mtime = FileTime.from(mtime);
// 		this.ctime = FileTime.from(ctime);
// 		this.size = size;
// 	}
// 
// 	public static FileInfo of(Path path)
// 			throws IOException {
// 		Map<String, Object> attributes = Files.readAttributes(path, "unix:*"); // Follow links in this case
// 		return new FileInfo((long) attributes.get("ino"), (FileTime) attributes.get("lastModifiedTime"), (FileTime) attributes.get("ctime"),
// 				(long) attributes.get("size"));
// 	}
// 
// 	public long getInode() {
// 		return inode;
// 	}
// 
// 	public FileTime getMtime() {
// 		return mtime;
// 	}
// 
// 	public FileTime getCtime() {
// 		return ctime;
// 	}
// 
// 	public long getSize() {
// 		return size;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		return Objects.hash(inode, mtime, ctime, size);
// 	}
// 
// 	@Override
// 	public boolean equals(Object obj) {
// 		if (this == obj) {
// 			return true;
// 		}
// 		if (obj == null) {
// 			return false;
// 		}
// 		if (getClass() != obj.getClass()) {
// 			return false;
// 		}
// 		FileInfo other = (FileInfo) obj;
// 		return Objects.equals(inode, other.inode) && Objects.equals(mtime, other.mtime) && Objects.equals(ctime, other.ctime)
// 				&& Objects.equals(size, other.size);
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return "FileInfo [inode=" + inode + ", mtime=" + mtime + ", ctime=" + ctime + ", size=" + size + "]";
// 	}
// }


// Path: core/src/test/java/se/tfiskgul/mux2fs/mux/MuxedFileTest.java
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import org.junit.Test;
import se.tfiskgul.mux2fs.fs.base.FileInfo;

/*
MIT License

Copyright (c) 2017 Carl-Frederik Hallberg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
 */
package se.tfiskgul.mux2fs.mux;




public class MuxedFileTest {

	@Test
	public void testEquals() {
		FileInfo info = mock(FileInfo.class);