Files
openide/platform/platform-tests/testSrc/com/intellij/ui/TextPanelTest.java
Nikolay Chashnikov a3385d4158 cleanup: remove redundant '@author' tags from javadoc comments - 29
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: a524f4e03a4e80b49653f4eb3c1179cbdc5e581d
2023-01-18 17:03:00 +00:00

24 lines
655 B
Java

package com.intellij.ui;
import com.intellij.openapi.wm.impl.status.TextPanel;
import org.junit.Assert;
import org.junit.Test;
import java.awt.*;
public class TextPanelTest {
@Test
public void testSetPreferredSizeSetExplicitSizeGetExplicitSize() {
final Dimension preferredDimension = new Dimension(2345,678);
final Dimension explicitDimension = new Dimension(4343,5554);
TextPanel tp = new TextPanel() {};
tp.setPreferredSize(preferredDimension);
tp.setExplicitSize(explicitDimension);
Assert.assertEquals("Explicit dimension is more preferable",
explicitDimension, tp.getPreferredSize());
}
}