You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
概要 「ソースがごちゃごちゃしていて,どこに何が書いてあるのか理解するまでがたいへん」「1つの修正のために,あっちもこっちも書きなおす必要がある」「ちょっとした変更のはずが,本来はありえない場所にまで影響して,大幅なやり直しになってしまった」といったトラブルが起こるのは,ソフトウェアの設計に問題があるから。日本最大級となる60万件以上の求人情報サイト「イーキャリアJobSearch」の主任設計者であり,システム設計のベテランである著者が,コードの具体例を示しながら,良い設計のやり方と考え方を解説します。 目次 第1章 小さくまとめてわかりやすくする なぜソフトウェアの変更は大変なのか ソフトウェアの変更に立ち向かう 変更が大変なプログラムの特徴 変更するたびに変更が大変になる プログラムの変更が楽になる書き方 わかりやすい名前を使う 長いメソッドは「段落」に分けて読みやすくする 目的ごとに
Spring Frameworkは Rod Johnson 氏の著書 "Expert One-on-One J2EE Design and Development" の中で使用されたコードを元にしたオープンソースの Java/J2EE アプリケーションフレームワークです。 「DIコンテナ」「Dependency Injection」という言葉を、耳にしたことはないでしょうか。Dependency Injection とは、オブジェクト が必要とする情報を、外部から注入することで、コンポーネントの再利用性を高めることを目的としたデザインパターンのひとつです。 ここでは、今後 Java プログラマにとって必須となるであろう Spring Frameworkについて解説していきます。 Spring Framework INDEX Spring Framework 1.1. Spring の概要
久しぶりにDbUnitを使おうとおもったらはまりまくった。 環境はeclipse3.4.1上のプロジェクト(古いけどこのときのシステムはこれで統一してたので。。。) Springは2.5.6 1つ目のはまりはコンパイルエラー まずアノテーション@RunWith(SpringJUnit4ClassRunner.class)を追加すると、 型 org.junit.internal.runners.JUnit4ClassRunner を解決できません。 必要な .class ファイルから間接的に参照されています のエラーメッセージ。。。 Springにはいっていたjunit-4.4.jarをクラスパスに追加して解決。 2つ目のはまりトランザクション 初期データをDataSetからCLEAN_INSERTを行っても、テスト実行時は別のトランザクションになってしまいテストができなかった。。。 データ
Turgay Kıvrak's Weblog Experiences, Pitfalls, Advices, Thoughts, Comments… In this post, I will create a base class for repository tests. I used DBUnit to populate database configured in a testContext.xml. And I used Spring test annotations to wire test classes with dataSource and repositories. Requirements * Spring 2.5 * DbUnit 2.2.2 * Junit 4.4Here you are import javax.sql.DataSource; import org
■ データのバックアップ DBUnitの機能でAntでデータのバックアップをXMLに取ってくれるのがあったので、 http://muimi.com/j/test/dbunit/を参考にやってみました。 今回はMavenなプロジェクトなのでmaven-antrun(http://maven.apache.org/plugins/maven-antrun-plugin/)を 使ってpom.xmlの中からAntタスクを叩きました。 #Maven上でクラスパス通せるのがナイス <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>export</id> <
Spring DBUnit provides integration between the Spring testing framework and the popular DBUnit project. It allows you to setup and teardown database tables using simple annotations as well as checking expected table contents once a test completes. The project can be configured to run DBUnit tests using a Spring TestExecutionListener. Configuration To have Spring process DBUnit annotations you must
Spring DBUnit provides integration between the Spring testing framework and the popular DBUnit project. It allows you to setup and teardown database tables using simple annotations as well as checking expected table contents once a test completes. The project can be configured to run DBUnit tests using a Spring TestExecutionListener. Configuration To have Spring process DBUnit annotations you must
Level up your Java™ code With Spring Boot in your app, just a few lines of code is all you need to start building services like a boss. New to Spring? Try our simple quickstart guide. Most [of our] services today are all based on Spring Boot. I think the most important thing is that [Spring] has just been very well maintained over the years...that is important for us for the long term because we d
Spring Framework は、Javaプラットフォーム向けのオープンソースアプリケーションフレームワークである。単に Spring とも呼ばれる。ロッド・ジョンソン(英語版)が自著 Expert One-on-One J2EE Design and Development(Wrox Press、2002年10月)と共にリリースしたのが最初である。.NET Framework 向けの移植版もある[2]。2006年、Spring Framework 1.2.6 は Jolt productivity award を受賞した[3]。 Spring Framework は特定のプログラミングモデルを強制するものではないが、Javaコミュニティでは Enterprise JavaBeans (EJB) モデルの代替・置換・追加として広く認知されつつある。設計上、このフレームワークはJava開
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く