Damien Martin-Guillerez | f88f4d8 | 2015-09-25 13:56:55 +0000 | [diff] [blame] | 1 | // Copyright 2014 The Bazel Authors. All rights reserved. |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | package com.google.devtools.build.lib.vfs; |
| 15 | |
lberki | aea56b3 | 2017-05-30 12:35:33 +0200 | [diff] [blame] | 16 | import static com.google.common.truth.Truth.assertThat; |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 17 | |
| 18 | import com.google.devtools.build.lib.vfs.util.FileSystems; |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 19 | import org.junit.Test; |
| 20 | import org.junit.runner.RunWith; |
| 21 | import org.junit.runners.JUnit4; |
| 22 | |
| 23 | /** |
| 24 | * This class handles the tests for the FileSystems class. |
| 25 | */ |
| 26 | @RunWith(JUnit4.class) |
| 27 | public class FileSystemsTest { |
| 28 | |
| 29 | @Test |
Googler | c05fd5b | 2019-09-05 01:19:01 -0700 | [diff] [blame] | 30 | public void testFileSystems() { |
cpovirk | bcd02f9 | 2019-04-26 10:41:50 -0700 | [diff] [blame] | 31 | assertThat(FileSystems.getJavaIoFileSystem()) |
| 32 | .isNotSameInstanceAs(FileSystems.getNativeFileSystem()); |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 33 | } |
| 34 | } |