This commit is contained in:
Looly
2023-03-30 00:09:14 +08:00
parent df6208e8d9
commit 3ce7c3c36b
4 changed files with 107 additions and 34 deletions

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2023 looly(loolly@aliyun.com)
* Hutool is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package cn.hutool.setting.toml;
import cn.hutool.core.io.resource.ResourceUtil;
import org.junit.Assert;
import org.junit.Test;
import java.util.Map;
public class TomlTest {
@Test
public void readTest() {
final Map<String, Object> read = Toml.read(ResourceUtil.getResource("test.toml"));
Assert.assertEquals(5, read.size());
}
}