📄 jtabletest.java
字号:
package com.thoughtworks.acceptance;
import javax.swing.*;
public class JTableTest extends AbstractAcceptanceTest {
// JTable is one of the nastiest components to serialize. If this works, we're in good shape :)
public void testJTable() {
// Note: JTable does not have a sensible .equals() method, so we compare the XML instead.
JTable original = new JTable();
String originalXml = xstream.toXML(original);
JTable deserialized = (JTable) xstream.fromXML(originalXml);
String deserializedXml = xstream.toXML(deserialized);
assertEquals(originalXml, deserializedXml);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -