Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このorg.junitパッケージは、AssertJUnit テスト用のクラスを定義します。JClassこの静的クラスをフレームワークのとして取得するにはどうすればよいCodeModelですか?
org.junit
Assert
JClass
CodeModel
私はそれを見つけたと思います:
import com.sun.codemodel.JCodeModel; import org.junit.Assert; ... JCodeModel jcm = new JCodeModel(); assertClass = jcm.ref(Assert.class);