Compile Testing

码农软件 · 软件分类 · 测试工具 · 2019-11-22 15:26:30

软件介绍

Compile Testing 是一个用来测试 Javac 和注释处理器的工具。

示例代码:

@RunWith(JUnit4.class)
public class TreeContextTest {
  @Rule public final ExpectedException expectedExn = ExpectedException.none();
  private static final String LITERAL_VALUE = "literal";
  private static final ImmutableList<String> baseTreeSource = ImmutableList.of(
      "package test;",
      "",
      "final class TestClass {",
      "    public String toString() {",
      "        Object variable = new Object();",
      "        return \"" + LITERAL_VALUE + "\" + variable;",
      "    }",
      "",
      "    public void nonsense() {",
      "        int[] numbers = {0, 1, 2, 3, 4};",
      "        for (int x : numbers) {",
      "            if (x % 2 == 0) {",
      "                throw new IllegalStateException();",
      "            }",
      "        }",
      "    }",
      "}");

本文地址:https://codercto.com/soft/d/19554.html

Clean Architecture

Clean Architecture

Robert C. Martin / Prentice Hall / 2017-9-20 / USD 34.99

Practical Software Architecture Solutions from the Legendary Robert C. Martin (“Uncle Bob”) By applying universal rules of software architecture, you can dramatically improve developer producti......一起来看看 《Clean Architecture》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具