12月10日は、あろえ4回目の誕生日
いつものようにケーキ待てからの写メ
あろえだけじゃかわいそうなので、つくしのケーキ(ちょい小さめ)も購入
つくしはケーキ待てが出来なくてジワジワ近寄ってくるwww
というか、ふせすらできてない、、、
| 日 | 月 | 火 | 水 | 木 | 金 | 土 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
var UIUtil = function () {
};
UIUtil.prototype.createClosure = function (instance, callBackFunction) {
return function () {
callBackFunction.apply(instance, arguments);
};
};
var PageControl = function () {
this.initialize();
}
PageControl.prototype.initialize = function () {
this.bindEventListener();
};
PageControl.prototype.bindEventListener = function () {
$("#hoge").click(UIUtil.prototype.createClosure(this, this.onHogeClick));
};
PageControl.prototype.onHogeClick = function (e) {
this.doAlert($(e.currentTarget).val() + "がクリックされたよー");
};
PageControl.prototype.doAlert = function (msg) {
alert(msg);
};
$(function (){
$.extend({controller : new PageControl()});
});
(function ($) {
$(document).ready(initialize);
function initialize() {
bindEventListener();
};
function bindEventListener() {
$("#hoge").click(onHogeClick);
}
function onHogeClick(e) {
alert($(e.currentTarget).val() + "がクリックされたよー");
}
})(jQuery);
var PageControl = function () {
this.initialize();
}
PageControl.prototype.initialize = function () {
this.bindEventListener();
};
PageControl.prototype.bindEventListener = function () {
$("#hoge").click(this.onHogeClick);
};
PageControl.prototype.onHogeClick = function () {
alert($(e.currentTarget).val() + "がクリックされたよー");
};
$(function (){
$.extend({controller : new PageControl()});
});
package test.validator;
import org.springframework.stereotype.Component;
@Component
public class FooValidator {
public boolean validate() {
return true;
}
}
package test;
import junit.framework.TestCase;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import test.validator.FooValidator;
public class FooValidatorTest extends TestCase {
private FooValidator validator = null;
@Override
protected void setUp() throws Exception {
// ClassPathXmlApplicationContextを使用してコンテキストファイルを読み込む
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:test/test-context.xml");
// コンテキストからテスト対象のBeanを取得する
validator = context.getBean(FooValidator.class);
}
@Test
public void testCase1() {
assertTrue(validator.validate());
}
}
package test;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import test.validator.FooValidator;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "test-context.xml"})
public class FooValidatorTest extends TestCase {
@Autowired
private ApplicationContext context = null;
@Autowired
private FooValidator validator = null;
@Test
public void testCase1() {
assertTrue(validator.validate());
}
}