ユニット・テストの概要
|
|
|
- せせら たけくま
- 7 years ago
- Views:
Transcription
1
2 JUnit Apache Cactus... 7 HttpUnit/ServletUnit... 8 utplsql... 8 Clover... 8 Anthill Pro SQL Java setter getter CRUD : StringUtils : Person : StringUtilsTester : PersonTester ADF ADF ADF CRUD Oracle Corporation Getting Started With Unit-testing
3 Java Oracle Corporation Getting Started With Unit-testing
4 3 substitute() public static void testsubstitute() assertequals("a bear", StringUtils.substitute("a goose", "goose", "bear")); substitute() public static String substitute (String text, String replace, String with) return new String("a donkey"); a bear a donkey 1 public static String substitute (String text, String replace, String with) return new String("a bear"); substitute() substitute() text replace with NULL 4 Oracle Corporation Getting Started With Unit-testing
5 IDE assertequals() substitute ("a goose", "goose", "bear") a bear 5 Oracle Corporation Getting Started With Unit-testing
6 JUnit Java JUnit OTN JUnit Extension JDeveloper JUnit JUnit 6 Oracle Corporation Getting Started With Unit-testing
7 [JDeveloper home]\jdev\lib\ext Oracle JDeveloper JUnit JVM Java JUnit JDeveloper JUnit HTTP EJB JVM Apache Cactus Apache Cactus Cactus JUnit OC4J Tomcat Cactus EJB JSP XSLT Cactus 7 Oracle Corporation Getting Started With Unit-testing
8 Cactus Web Cactus HttpUnit HttpUnit/ServletUnit HttpUnit Web HTTP HttpUnit JavaScript Cookie Web HttpUnit ServletUnit JUnit Cactus HttpUnit ServletUnit HttpUnit UI HttpUnit utplsql Oracle PL/SQL PL/SQL utplsql Clover 1 Clover Jakarta Ant Clover Clover Clover JDeveloper 10g Clover Clover 8 Oracle Corporation Getting Started With Unit-testing
9 Clover レポートの例 JDeveloper に統合できる Clover Anthill Pro Anthill Pro は ソフトウェア ビルド管理サーバーです Anthill Pro により Apache Ant のようなビルダー フレームワークに基づくビルド プロセス ユニット ユニット テストの概要 9 Oracle Corporation 発行 Getting Started With Unit-testing の翻訳版です
10 Clover CVS Anthill Pro Anthill JUnit JUnit.org ( Extensions JSP 1 SQL Java SQL SQL 2 SQL Java 10 Oracle Corporation Getting Started With Unit-testing
11 SQL Java Java 2 TopLink 1 TopLink TopLink SQL TopLink CHECK Java PL/SQL SQL 2 Java - IDE Java 2 PL/SQL Developer Toad 1 11 Oracle Corporation Getting Started With Unit-testing
12 2 1 jar setter getter Java Bean getter setter getter setter getter setter getter setter CRUD TopLink setter getter CRUD private protected 12 Oracle Corporation Getting Started With Unit-testing
13 JUnit JUnit JUnit Javadoc FAQ Wiki ADF ADF Toy Store Demo /jdev/collateral/papers/10g/adftoy store.html 13 Oracle Corporation Getting Started With Unit-testing
14 : StringUtils substitute() bear true isabear() NULL trimemptytonull() package oracle.code.utils; import java.util.list; import java.util.arraylist; import java.util.stringtokenizer; public class StringUtils private static String BEAR = new String("bear"); private static String EMPTY = new String(""); * * * * in.replaceall(find,newstring) * in: find: newstring: in * newstring public static String substitute (String in, String find, String newstring) // NULL if ( in == null find == null newstring == null) return in; char[] working = in.tochararray(); StringBuffer stringbuffer = new StringBuffer(); // find int startindex = in.indexof(find); if (startindex < 0) return in; int currindex=0; while (startindex > -1) for(int i = currindex; i < startindex; i++) stringbuffer.append(working[i]); 14 Oracle Corporation Getting Started With Unit-testing
15 currindex = startindex; stringbuffer.append(newstring); currindex += find.length(); startindex = in.indexof(find,currindex); for (int i = currindex; i < working.length; i++) stringbuffer.append(working[i]); return stringbuffer.tostring(); * s "bear" true * s: s "bear" true public static boolean isabear(string s) return BEAR.equals(s); * ""NULL * string: NULL string public static String trimemptytonull (String string) if (string == null EMPTY.equals(string.trim())) return null; return string; 15 Oracle Corporation Getting Started With Unit-testing
16 : Person Person equal getter setter package oracle.code.model; public class Person private String name; private Integer age; public Person () * * name: age: public Person (String name, Integer age) this.name = name; this.age = age; * * name: public void setname(string name) this.name = name; * * public String getname() return this.name; * * age: public void setage(integer age) this.age = age; * * 16 Oracle Corporation Getting Started With Unit-testing
17 public Integer getage() return this.age; * * p: this p true public boolean equals(object p) // p this true if (this == p) return true; // p false if (!(p instanceof Person)) return false; // true Person q = (Person)p; return ( (this.name == null? q.name == null: this.name.equals(q.name)) && (this.age == null? q.age == null: this.age.equals(q.age)) ); 17 Oracle Corporation Getting Started With Unit-testing
18 : StringUtilsTester StringUtils testsubstitute() JDeveloper JUnit New General Unit Tests (JUnit) Test Case Subject Class StringUtilsTester Package Name oracle.code.utils.test Extends junit.framework.testcase package oracle.code.utils.test; import junit.framework.test; import junit.framework.testcase; import junit.framework.testsuite; import oracle.code.utils.stringutils; import oracle.code.model.person; public class StringUtilsTester extends TestCase public StringUtilsTester(String stestname) super (stestname); * String substitute (String, String, String) public void testsubstitute() // A: assertequals("a bear", StringUtils.substitute("a goose", "goose", "bear")); // B: assertequals("a goat", StringUtils.substitute("a goose", "goose", "bear")); // C: // assertequals("substitute goose by bear", "a goat", StringUtils.substitute("a goose", "goose", "bear")); 18 Oracle Corporation Getting Started With Unit-testing
19 // D: asserttrue/false assertequals("a bear is a bear", true, StringUtils.isABear("bear")); asserttrue("a bear is a bear", StringUtils.isABear("bear")); assertfalse("a goat is not a bear", StringUtils.isABear("goat")); * String trimemptytonull(string) public void testtrimemptytonull() // E: assertnull/assertnotnull assertequals("trim empty string to null is null", null, StringUtils.trimEmptyToNull("")); assertnull("trim empty string to null is null", StringUtils.trimEmptyToNull("")); // trimemptytonull assertnotnull("trim x to null is not null", StringUtils.trimEmptyToNull("x")); 19 Oracle Corporation Getting Started With Unit-testing
20 : PersonTester Person JUnit JDeveloper JUnit package oracle.code.model.test; import junit.framework.test; import junit.framework.testcase; import junit.framework.testsuite; import oracle.code.model.person; public class PersonTester extends TestCase public PersonTester(String stestname) super(stestname); * boolean equals (Person) public void testequals() // Person jan = new Person("Jan", new Integer(10)); Person piet = new Person("Jan", new Integer(10)); Person joris = new Person("Jan", new Integer(10)); Person fred = new Person(); Person klaas = new Person("Klaas", new Integer(10)); // F: assertequals // assertequals("jan must equal itself", jan, jan); // assertequals("jan equals piet", jan, piet); assertequals("so piet must equal jan", piet, jan); // assertequals("piet equals joris", piet, joris); assertequals("so jan must equal joris", jan, joris); // assertequals("fred equals itself", fred, fred); assertfalse("fred not equals null", fred.equals(null)); assertfalse("jan must not equal klaas", jan.equals(klaas)); // G: assertsame assertsame("fred is same object as fred, fred, fred); assertnotsame("jan is not same as piet", jan, piet); 20 Oracle Corporation Getting Started With Unit-testing
21 PersonTester StringUtilsTester JUnit 1 JDeveloper JUnit New General Unit Tests (JUnit) Test Suite Class AllTests oracle.code.test Extends java.lang.object Cases Add Suite() JUnit test addtest()addtestsuite() suite() package oracle.code.test; import junit.framework.test; import junit.framework.testsuite; public class AllTests public static Test suite() TestSuite suite = new TestSuite("AllTests"); suite.addtestsuite(oracle.code.model.test.persontester.class); suite.addtestsuite(oracle.code.utils.test.stringutilstester.class); return suite; public static void main (String args[]) String args2 [] = "-noloading", "oracle.code.test.alltests"; junit.swingui.testrunner.main(args2); 21 Oracle Corporation Getting Started With Unit-testing
22 PersonTester SetUp()tearDown() 2 JUnit test setup() teardown() 1 package oracle.code.model.test; import junit.framework.test; import junit.framework.testcase; import junit.framework.testsuite; import oracle.code.model.person; public class PersonTester extends TestCase private Person jan; private Person piet; private Person joris; private Person fred; private Person klaas; public PersonTester(String stestname) super(stestname); public void setup() this.jan = new Person("Jan", new Integer(10)); this.piet = new Person("Jan", new Integer(10)); this.joris = new Person("Jan", new Integer(10)); this.fred = new Person () ; this.klaas = new Person("Klaas", new Integer(10)); public void teardown() this.jan = null; this.piet = null; this.joris = null; this.fred = null; this.klaas = null; * boolean equals (Person) public void testequals() // F: assertequals // assertequals("jan must equal itself", jan, jan); // assertequals("jan equals piet", jan, piet); assertequals("so piet must equal jan", piet, jan); 22 Oracle Corporation Getting Started With Unit-testing
23 // assertequals("piet equals joris", piet, joris); assertequals("so jan must equal joris", jan, joris); // assertequals("fred equals itself", fred, fred); assertfalse("fred not equals null", fred.equals(null)); assertfalse("jan must not equal klaas", jan.equals(klaas)); // G: assertsame assertsame("fred is same object as fred", fred, fred); assertnotsame("jan is not same object as piet", jan, piet); ADF ADF ADF HR HR HR ADF JDeveloper JUnit New General Unit Tests (JUnit) Business Components Test Fixture JDBC DataSource JDeveloper J2EE Web/EJB Bundled Exception Mode true 23 Oracle Corporation Getting Started With Unit-testing
24 package oracle.hr.testfixtures; import oracle.jbo.*; import oracle.jbo.client*; public class HrServicesConnectFixture private static final String AM = "oracle.hr.services.hrservices"; private static final String CF = "HrServicesLocal"; private ApplicationModule applicationmodule; public HrServicesConnectFixture() * public void setup() throws Exception this.applicationmodule = Configuration.createRootApplicationModule(AM, CF); /* * ADF/Struts Bundled Exception Mode this.applicationmodule.gettransaction().setbundledexceptionmode( true ); * public void teardown() throws Exception Configuration.releaseRootApplicationModule(this.applicationModule, true); * * public ApplicationModule getapplicationmodule() return this.applicationmodule; 24 Oracle Corporation Getting Started With Unit-testing
25 ADF CRUD ADF 1 ManagerId DepartmentId ID package oracle.hr.dataaccess; import junit.framework.test; import junit.framework.testcase; import junit.framework.testsuite; import oracle.hr.testfixtures.hrservicesconnectfixture; import oracle.jbo.jboexception; import oracle.jbo.key; import oracle.jbo.viewobject; import oracle.jbo.row; public class DepartmentsTests extends TestCase private static String DEPARTMENTID = "DepartmentId"; private static String DEPARTMENTNAME = "DepartmentName"; private static String MANAGERID = "ManagerId"; private static String LOCATIONID = "LocationId"; HrServicesConnectFixture connectionfixture = new HrServicesConnectFixture(); public DepartmentsTests (String stestname) super(stestname); public void testdepartmentsviewobjectlifecycle() ViewObject departmentsview = this.connectionfixture.getapplicationmodule().findviewobject( "Depart ments"); * NULL assertnotnull(departmentsview); * Row departmentrow = departmentsview.createrow(); try 25 Oracle Corporation Getting Started With Unit-testing
26 departmentrow.setattribute(this.departmentid, "1"); departmentrow.setattribute(this.departmentname, "test department"); departmentrow.setattribute(this.managerid, "100"); departmentrow.setattribute(this.locationid, "1000"); catch (JboException jbo) fail("should not have thrown this " + jbo.getclass().getname() + " exception yet due to bundled exception mode"); this.connectionfixture.getapplicationmodule().gettransaction(). commit(); * Row[] departmentrows = new Row[0]; try Key key = departmentrow.getkey(); departmentrows = departmentsview.findbykey(key, 1); assertequals("expect to find one department with id 1", departmentrows.length, 1) ; catch (JboException jbo) fail("should not have thrown this " + jbo.getclass().getname() + " exception yet due to bundled exception mode"); * try departmentrows[0].setattribute(this.departmentname, "testing department"); this.connectionfixture.getapplicationmodule().gettransaction(). commit(); catch (JboException jbo) fail("should not have thrown this " + jbo.getclass().getname() + " exception yet due to bundled exception mode"); * try 26 Oracle Corporation Getting Started With Unit-testing
27 departmentrows[0].remove(); this.connectionfixture.getapplicationmodule().gettransaction(). commit(); catch (JboException jbo) fail("should not have thrown this " + jbo.getclass().getname() + " exception yet due to bundled exception mode"); public void setup() throws Exception this.connectionfixture.setup(); public void teardown() throws Exception this.connectionfixture.teardown(); 27 Oracle Corporation Getting Started With Unit-testing
28 : Jan Kettenis, Remco de Blok Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA U.S.A. : : : Copyright 2004, Oracle. All rights reserved. Oracle Oracle Corporation
新・明解Java入門
537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,
untitled
Oracle Enterprise Manager 10g Oracle Application Server 2003 11 Oracle Enterprise Manager 10g Oracle Application Server... 3 Application Server... 4 Oracle Application Server... 6... 6... 7 J2EE... 8...
Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac
Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN
Java演習(4) -- 変数と型 --
50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends
10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV
[email protected] [email protected] http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20
{:from => Java, :to => Ruby } Java Ruby KAKUTANI Shintaro; Eiwa System Management, Inc.; a strong Ruby proponent http://kakutani.com http://www.amazon.co.jp/o/asin/4873113202/kakutani-22 http://www.amazon.co.jp/o/asin/477413256x/kakutani-22
やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF
pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) 3 5 14 18 21 23 23 24 28 29 29 31 32 34 35 35 36 38 40 44 44 45 46 49 49 50 pref : 2004/6/5 (11:8) 50 51 52 54 55 56 57 58 59 60 61
XMLテクノロジを使いやすくする
XML 2005 9 XML... 3... 3 XML... 5 DOM XML... 5 DOM 3.0 Load and Save... 5 DOM 3.0 Validation... 8 SAX XML... 11 SAX... 11 XSL... 12... 13... 13... 14... 14 XML... 15 XML... 15 JAXB CLASS GENERATOR... 16
$ java StoreString abc abc ed abced twice abcedabced clear xyz xyz xyz bingo! abc bingo!abc ^Z mport java.io.*; ublic class StoreString { public static void main(string[] args) throws IOException{ BufferedReader
解きながら学ぶJava入門編
44 // class Negative { System.out.print(""); int n = stdin.nextint(); if (n < 0) System.out.println(""); -10 Ÿ 35 Ÿ 0 n if statement if ( ) if i f ( ) if n < 0 < true false true false boolean literalboolean
Oracle Identity Managementの概要およびアーキテクチャ
Oracle Identity Management 2003 12 Oracle Identity Management... 3 ID... 3 ID... 4 ID... 4 Oracle Identity Management... 5 Oracle Identity Management... 6 Oracle Identity Management... 7 ID... 8 Application
Oracle Forms Services R6i
Creation Date: Jul 04, 2001 Last Update: Jul 31, 2001 Version: 1.0 0 0... 1 1...3 1.1... 3 1.2... 3 1.3... 3 2...4 2.1 C/S... 4 2.2 WEB... 5 2.3 WEB... 5 2.4 JAVABEAN... 6 3 JAVABEAN...7 3.1... 7 3.2 JDEVELOPER...
K227 Java 2
1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html
3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello World");
(Basic Theory of Information Processing) Java (eclipse ) Hello World! eclipse Java 1 3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello
組織変更ライブラリ
2003 6 1...1 2...2 3...4 3.1...4 3.2...5 3.3...6 3.4...6 4...7 4.1...7 4.2...9 4.3...9 4.4...10 4.5...10 5 Web...11 5.1 WebUI...11 5.2Oracle 9iFS WebUI...12 6Oracle9i AS...13 6.1OiD...13 6.2 SSO...13 7...14
. IDE JIVE[1][] Eclipse Java ( 1) Java Platform Debugger Architecture [5] 3. Eclipse GUI JIVE 3.1 Eclipse ( ) 1 JIVE Java [3] IDE c 016 Information Pr
Eclipse 1,a) 1,b) 1,c) ( IDE) IDE Graphical User Interface( GUI) GUI GUI IDE View Eclipse Development of Eclipse Plug-in to present an Object Diagram to Debug Environment Kubota Yoshihiko 1,a) Yamazaki
Oracle9i JDeveloper R9.0.3 チュートリアル
Oracle9i JDeveloper 9.0.3 JavaServer Pages Creation Date: Jan. 27, 03 Last Update: Feb. 13, 03 Version: 1.0 ... 2... 2... 2 JDeveloper JSP... 3... 4 JSP... 5 JSP... 6... 7...10 JDeveloper... 12 TLD...
(Eclipse\202\305\212w\202\324Java2\215\374.pdf)
C H A P T E R 11 11-1 1 Sample9_4 package sample.sample11; public class Sample9_4 { 2 public static void main(string[] args) { int[] points = new int[30]; initializearray(points); double averagepoint =
226
226 227 Main ClientThread Request Channel WorkerThread Channel startworkers takerequest requestqueue threadpool WorkerThread channel run Request tostring execute name number ClientThread channel random
r1.dvi
2006 1 2006.10.6 ( 2 ( ) 1 2 1.5 3 ( ) Ruby Java Java Java ( Web Web http://lecture.ecc.u-tokyo.ac.jp/~kuno/is06/ / ( / @@@ ( 3 ) @@@ : ( ) @@@ (Q&A) ( ) 1 http://www.sodan.ecc.u-tokyo.ac.jp/cgi-bin/qbbs/view.cgi
TopLink È... 3 TopLink...5 TopLink åø... 6 TopLink å Workbench O/R ~... 8 Workbench À ~... 8 Foundation Library å... 8 TopL
lê~åäé= qçéiáåâ= NMÖENMKNKPF Volume1 Creation Date: Mar 04, 2005 Last Update: Aug 23, 2005 Version 1.0 ...3... 3 TopLink 10.1.3 È... 3 TopLink...5 TopLink åø... 6 TopLink å... 7... 8 Workbench O/R ~...
Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1
Java (9) 1 Lesson 7 2008-05-20 Java System.out.println() 1 Java API 1 Java Java 1 GUI 2 Java 3 1.1 5 3 1.0 10.0, 1.0, 0.5 5.0, 3.0, 0.3 4.0, 1.0, 0.6 1 2 4 3, ( 2 3 2 1.2 Java (stream) 4 1 a 5 (End of
untitled
-1- 1. JFace Data Binding JFace Data Binding JFace SWT JFace Data Binding JavaBean JFace Data Binding JavaBean JFace Data Binding 1JFace Data Binding JavaBean JavaBean JavaBean name num JavaBean 2JFace
VB.NETコーディング標準
(C) Copyright 2002 Java ( ) VB.NET C# AS-IS [email protected] [email protected] Copyright (c) 2000,2001 Eiwa System Management, Inc. Object Club Kenji Hiranabe02/09/26 Copyright
Condition DAQ condition condition 2 3 XML key value
Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................
intra-mart Accel Platform — イベントナビゲータ 開発ガイド 初版 None
クイック検索検索 目次 Copyright 2013 NTT DATA INTRAMART CORPORATION 1 Top 目次 intra-mart Accel Platform イベントナビゲータ開発ガイド初版 2013-07-01 None 改訂情報概要イベントフローの作成 更新 削除をハンドリングするイベントフローを非表示にする回答を非表示にするリンクを非表示にするタイトル コメントを動的に変更するリンク情報を動的に変更するナビゲート結果のリンクにステータスを表示する
intra-mart Accel Platform — イベントナビゲータ 開発ガイド 初版
Copyright 2013 NTT DATA INTRAMART CORPORATION 1 Top 目次 intra-mart Accel Platform イベントナビゲータ開発ガイド初版 2013-07-01 改訂情報概要イベントフローの作成 更新 削除をハンドリングするイベントフローを非表示にする回答を非表示にするリンクを非表示にするタイトル コメントを動的に変更するリンク情報を動的に変更するナビゲート結果のリンクにステータスを表示する
Microsoft Word - 430_15_Developing_Stored_Procedure.doc
Java Oracle 1998 11 Java 3 Java Web GUI Java Java Java Oracle Java Oracle8i Oracle / Oracle Java Virtual Machine VM CORBA Enterprise JavaBeans Oracle Java Java Java Oracle Oracle Java Virtual Machine Oracle
Oracle Application Server 10g (9.0.4): Manually Managed Cluster
Oracle Application Server 10g 9.0.4 : 2004 6 Oracle Application Server 10g 9.0.4 : Oracle Application Server... 3... 3 Oracle Application Server... 3... 3... 4 Oracle Application Server... 6 Oracle Application
ERP連携モジュールチュートリアル
ERP SAP R/3 API 2 2004 12 17 2004/10/08 2004/12/17 SAP SAP 1...1 1.1...1 1.2...1 1.3 SAP API...2 1.4...3 1.4.1...3 1.4.2...6 1.5...7 1.6...8 1.6.1 sap_auth_info.properties Key...8 1.6.2 sap_auth_info.properties...9
I java A
I java 065762A 19.6.22 19.6.22 19.6.22 1 1 Level 1 3 1.1 Kouza....................................... 3 1.2 Kouza....................................... 4 1.3..........................................
アルゴリズムとデータ構造1
1 200972 (sakai.keiichi@kochi [email protected]) http://www.info.kochi ://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2009/index.html 29 20 32 14 24 30 48 7 19 21 31 Object public class
データ構造とアルゴリズム論
15 11 11 Java 21 231-0811 32 152-0033 1 Java 3-5,55,63,39,87,48,70,35,77,59,44 3-5 3-7 score2.txt 75 15 11 11 5-1 3-7 jbuttonread jbuttondisplay jlabelmessage jtextfieldname jtextfieldtokuten
JUnit 概要 2015/4/16 版今泉俊幸 2015 bbreak Systems 1
JUnit 概要 2015/4/16 版今泉俊幸 1 目次 1. 手動テストと自動テスト 2. JUnitの機能 3. 検証用メソッド 4. 基本的なJUnitテストケース 5. 実践的なJUnitテストケース 6. よく使う検証用メソッド 7. テストクラスの命名 配置など 2 手動テスト 手動テストと自動テスト テスト仕様書に基づいて 人手で値を入力 結果を検証する プログラム修正の度に実施するのはコストが高い
オブジェクト脳のつくり方
2003 12 16 ( ) ML Java,.NET, UML J2EE, Web Java, J2EE.NET SI ex. ) OO OO OO OO OO (Controller) (Promoter) (Analyzer) (Supporter) http://nba.nikkeibp.co.jp/coachsp.html It takes time. OO OK OO 1.
目的 泡立ち法を例に Comparableインターフェイスの実装 抽象クラスの利用 型パラメタの利用 比較 入替 の回数を計測
泡立ち法とその実装 計算機アルゴリズム特論 :2017 年度只木進一 目的 泡立ち法を例に Comparableインターフェイスの実装 抽象クラスの利用 型パラメタの利用 比較 入替 の回数を計測 Comparable インターフェイ ス クラスインスタンスが比較可能であることを示す Int compareto() メソッドを実装 Integer Double String などには実装済み public
Microsoft Word - J-jdev_dba_db_developers.doc
Oracle JDeveloper 2006 1 : Oracle Oracle JDeveloper 2 Oracle JDeveloper :... 2... 4... 4... 4... 5... 6 SQL... 7... 8... 8 SQL... 10 PL/SQL... 11 PL/SQL... 11 Code Editor PL/SQL... 12 Navigator Structure...
5 p Point int Java p Point Point p; p = new Point(); Point instance, p Point int 2 Point Point p = new Point(); p.x = 1; p.y = 2;
5 p.1 5 JPanel (toy example) 5.1 2 extends : Object java.lang.object extends... extends Object Point.java 1 public class Point { // public int x; public int y; Point x y 5.1.1, 5 p.2 5 5.2 Point int Java
Java学習教材
Java 2016/4/17 Java 1 Java1 : 280 : (2010/1/29) ISBN-10: 4798120987 ISBN-13: 978-4798120980 2010/1/29 1 Java 1 Java Java Java class FirstExample { public static void main(string[] args) { System.out.println("
インターネットマガジン2001年4月号―INTERNET magazine No.75
i illustration : Hada Eiji 206 INTERNET magazine 2001/4 jdc.sun.co.jp/wireless/ www.nttdocomo.co.jp/mc-user/i/java/ www.zentek.com/i-jae/ja/download.html INTERNET magazine 2001/4 207 Jump 01 Jump 02 Jump
JavaプログラミングⅠ
Java プログラミング Ⅰ 3 回目変数 今日の講義で学ぶ内容 変数とは 変数の使い方 キーボード入力の仕方 変 数 変 数 一時的に値を記憶させておく機能です 変数は 型 ( データ型ともいいます ) と識別子をもちます 2 型 変数に記憶できる値の種類です型は 値の種類に応じて次の 8 種類があり これを基本型といいます 基本型値の種類値の範囲または例 boolean 真偽値 true または
BC4J...4 BC4J Association JSP BC4J JSP OC4J
lê~åäévá=gaéîéäçééê= 9.0.3/9.0.4 BC4J Creation Date: Oct 08, 2003 Last Update: Feb 27, 2004 Version 1.0 ...3... 3 BC4J...4 BC4J...4... 4... 5... 6...7... 8... 9 Association... 13... 15... 20... 22... 25
Spring Framework Web Web Web DB AOP DI Java EE 3 Web WebMVC Web Java 4 DB H2 Database Java H2 Database http://www.h2database.com/ Version 1.0 Zip 5 H2 > cd $H2_HOME/bin > java cp h2.jar org.h2.tools.server
ALG ppt
2012614 ([email protected]) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2012/index.html 1 2 2 3 29 20 32 14 24 30 48 7 19 21 31 4 N O(log N) 29 O(N) 20 32 14 24 30 48 7 19 21 31 5
GIMP import javafx.application.application; import javafx.scene.scene; import javafx.scene.canvas.canvas; import javafx.scene.canvas.graphicscontext;
(JavaFX ) JavaFX 2 1. 2 2. 52 3. A, K, Q, J, 10, 9, 8, 7, 6, 5, 4, 3, 2 4. 13 5. 6. 7. 8. 9. 13 10. 11. 12. Java.gif 1 GIMP import javafx.application.application; import javafx.scene.scene; import javafx.scene.canvas.canvas;
CAC
VOL.24NO.1 61 IMS Transaction 3270 DataBase Transaction OS/370 IMS Traditional Transaction Web Browser Transaction Internet WWW AP IIS APache WebLogic Websphere DataBase Oracle DB2 SQL Server Web Browser
class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =
Part2-1-3 Java (*) (*).class Java public static final 1 class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value
Oracle Lite Tutorial
GrapeCity -.NET with GrapeCity - SPREAD Creation Date: Nov. 30, 2005 Last Update: Nov. 30, 2005 Version: 1.0 Document Control Internal Use Only Author Hiroshi Ota Change Logs Date Author Version Change
r02.dvi
172 2017.7.16 1 1.1? X A B A X B ( )? IBMPL/I FACOM PL1 ( ) X ( ) 1.2 1 2-0 ( ) ( ) ( ) (12) ( ) (112) (131) 281 26 1 (syntax) (semantics) ( ) 2 2.1 BNF BNF(Backus Normal Form) Joun Backus (grammer) English
Oracle Secure Enterprise Search 10gを使用したセキュアな検索
Oracle Secure Enterprise Search 10g 2006 3 Oracle Secure Enterprise Search 10g... 3... 3... 3... 4 Oracle Internet Directory... 4 Microsoft Active Directory... 5... 5 1... 5 2... 6 3 ACL... 6 4 ACL...
問題1 以下に示すプログラムは、次の処理をするプログラムである
問題 1 次に示すプログラムは 配列 a の値を乱数で設定し 配列 a の値が 333 より大きく 667 以下の値 の合計値を求めるプログラムである 1 と 2 に適切なコードを記述してプログラムを完 成させよ class TotalNumber { public static void main(string[] args) { int[] a = new int[1000]; // 1 解答条件
AJAXを使用した高い対話性を誇るポートレットの構築
Oracle Application Server Portal テクニカル ノート AJAX 2006 7 概要 Web Web Web UI Web Web Web Web Ajax Asynchronous JavaScript and XML Ajax Ajax 1 API JSR 168 Web Java JSR 168 JavaScript AJAX: 画面の背後にあるテクノロジ Web
1: Preference Display 1 package sample. pref ; 2 3 import android. app. Activity ; 4 import android. content. Intent ; 5 import android. content. Shar
Android 2 1 (Activity) (layout strings.xml) XML Activity (Intent manifest) Android Eclipse XML Preference, DataBase, File 3 2 Preference Preference Preference URL:[http://www.aichi-pu.ac.jp/ist/lab/yamamoto/android/android-tutorial/tutorial02/tutorial02.pdf]
Javaセキュアコーディングセミナー2013東京第1回 演習の解説
Java セキュアコーディングセミナー東京 第 1 回オブジェクトの生成とセキュリティ 演習の解説 2012 年 9 月 9 日 ( 日 ) JPCERT コーディネーションセンター脆弱性解析チーム戸田洋三 1 演習 [1] 2 演習 [1] class Dog { public static void bark() { System.out.print("woof"); class Bulldog
文字列操作と正規表現
文字列操作と正規表現 オブジェクト指向プログラミング特論 2018 年度只木進一 : 工学系研究科 2 文字列と文字列クラス 0 個以上の長さの文字の列 Java では String クラス 操作 文字列を作る 連結する 文字列中に文字列を探す 文字列中の文字列を置き換える 部分文字列を得る 3 String クラス 文字列を保持するクラス 文字列は定数であることに注意 比較に注意 == : オブジェクトとしての同等性
3 p.1 3 Java Java Java try catch C Java if for while C 3.1 boolean Java if C if ( ) 1 if ( ) 1 else , 2 { } boolean true false 2 boolean Gr
3 p.1 3 Java Java Java try catch C Java if for while C 3.1 boolean Java if C if ( ) 1 if ( ) 1 else 2 1 1 2 2 1, 2 { boolean true false 2 boolean Graphics draw3drect fill3drect C int C OK while (1)...
: : : TSTank 2
Java (8) 2008-05-20 Lesson6 Lesson5 Java 1 Lesson 6: TSTank1, TSTank2, TSTank3 java 2 car1 car2 Car car1 = new Car(); Car car2 = new Car(); car1.setcolor(red); car2.setcolor(blue); car2.changeengine(jet);
java_servlet2_見本
13 2 JSF Web 1 MVC HTML JSP Velocity Java 14 JSF UI PC GUI JSF Web 2.1 JSF JSF Web FORM FORM 2-1 JSF role, JSF JSF 15 Web JSF JSF Web Macromedia JSF JSF JSF 2.2 / Subscriber package com.mycompany.newsservice.models;
presen.gby
[email protected] 1 2 Paul Graham 3 Andrew Hunt and David Thomas 4 5 Java 6 Java Java Java 3 7 Haskell Scala Scala 8 9 Java Java Dean Wampler AWT ActionListener public interface ActionListener extends EventListener
JAVA 11.4 PrintWriter 11.5
JAVA 11.4 PrintWriter 11.5 PrintWriter Writer Int, float, char Object print() println() tostring() PrintWriter PrintWriter(OutputStream outputstream) PrintWriter(OutputStream outputstream, boolean flushonnewline)
今回の内容 グラフとオブジェクト指向プログラミング Java を使う理由 Java の基本 Javaのライブラリ 開発 実行 クラスの再利用 クラス継承 抽象クラス 開発の要点
JAVA 入門 今回の内容 グラフとオブジェクト指向プログラミング Java を使う理由 Java の基本 Javaのライブラリ 開発 実行 クラスの再利用 クラス継承 抽象クラス 開発の要点 グラフを記述するには 頂点 (Vertex) と弧 (Arc) その間の関係 素直にデータ構造として表現したい グラフは 頂点と弧の集合 弧から始点と終点を得る 頂点から その頂点を始点とする弧の集合を得る
問 次の Fortran プログラムの説明及びプログラムを読んで、設問に答えよ。
解答例 問題 1 変数 a が 3 以上でかつ 7 以下の場合 true と表示し そうでない場合は false と表示するプログラムである public class Prog061004_01 { int a; boolean b; a = Integer.parseInt(buf.readLine()); b = (a >= 3) && (a
