`
reverocean
  • 浏览: 195511 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

My first blog in english

    博客分类:
  • Java
阅读更多
Because I need to use english in my work,I decide to write my blog in english.I can use english to log what i study every day or
what i do,and so on.

In this project,I decide to use tdd to develop programs except the codes which are generated by command of CXF(In this project we use CXF to setup our web services server,next day ,I will write how to use CXF to develop web services).So I studied the jmock which is an java open source mock object project and is introduced by <pojo action="" in="">.
I think the jmock may be very easy,however,I have a problem when I read the "Getting Started" .
In the follow code:

        context.checking(new Expectations() {
            {
                one(subscriber).receive(message);
            }
        });
I think that the aim of  these codes  is new an instance of Expectations class,buy I cann't understand why there are two brackets after new Expectations().
And I cann't find any documents about it,so I sent a request on this forum but there is none reply to me.


ok,that's all.If I find the reason about it ,I'll write the answer.</pojo>
分享到:
评论
3 楼 reverocean 2007-10-06  
Thanks Jodie!
2 楼 reverocean 2007-10-06  
Jodie corrected the mistakes of this blog a few days ago,I planed to re-write it but I was so busy during this time.The following is the correct blog(maybe):
引用
Because I need to use english in my work,I decide to write my blog in english.I can use english to log what i study every day or
what i do,and so on.

In this project,I decide to use tdd to develop programs except the codes which are generated by command of CXF(In this project we use CXF to setup our web services server.Tomorrow ,I will write how to use CXF to develop web services).So I studied the jmock which is an java open source mock object project and is introduced by .
I think the jmock may be very easy,but I have a problem when I read the "Getting Started" .
In the follow code:

        context.checking(new Expectations() {
            {
                one(subscriber).receive(message);
            }
        });
I think that the aim of  these codes  is to new an instance of Expectations class,buy I cann't understand why there are two brackets after new Expectations().
And I cann't find any documents about it,so I sent a request on this forum but there is none reply to me.


ok,that's all.If I find the reason about it ,I'll write the answer.
1 楼 reverocean 2007-09-13  
I know the mean about these code above.The mean is when you create a new instance of Expectations,it will call one method.So the first bracket is for extending Expectations class,and the second bracket is for call one method after call constructor method.

PS:This is the link of my question which asked on this forumn:http://www.iteye.com/post/372578

Good luck!

相关推荐

    高中英语Unit my first day at senior high外研必修PPT课件.pptx

    首先,课件提到了一些高中阶段的学科名称,如biology(生物)、chemistry(化学)、English(英语)、Japanese(日语)、geography(地理)、Russian(俄语)、history(历史)、IT (Information Technology)(信息...

    ChatGPT使用总结:150个ChatGPT提示词模板

    充当 Linux 终端 i want you to act as a linux terminal. I will type commands and you will reply with what the ... my first command is pwd 充当英语翻译和改进者 I want you to act as an English translator

    高中自我介绍英语作文.pdf

    例如:“I won first place in the school computer competition last year.” 6. **课外活动**:提及参与的课外活动,如体育运动,这显示了个人的多样性和团队精神。例如:“My hobbies include swimming in ...

    考研英文自我介绍范文精选.doc

    As a result, I spent half a month with my personal computer to create a homepage for myself, becoming the first in my class to have one. Furthermore, I am known for my perseverance. While preparing ...

    高中英语 知识点大全74 in the hope of

    例如:"They got up very early in the hope of catching the first bus." 这句话中,“in the hope of catching the first bus”表明了他们早起的原因,即希望能赶上第一班公交车。 此外,"in the hope of"还可以...

    Udemy - Deep Learning Recurrent Neural Networks in Python

    In the first section of the course we are going to add the concept of time to our neural networks. I’ll introduce you to the Simple Recurrent Unit, also known as the Elman unit. We are going to ...

    求学英语面试自我介绍精选.doc

    5. **兴趣爱好**:分享你的业余爱好,尤其是与英语相关的,如:"In my spare time, I immerse myself in English-related activities, such as listening to English music, watching films, or engaging with ...

    HCloner.zip

    深拷贝 Below you can find a short article on how to do a deep copy of objects using Reflection in C#. Please be aware that this is my first article here (even first article in the English language...)

    湖北省北大附中武汉为明实验学校七年级英语上册Unit2Thisismysister知识总结无答案新版人教新目标版

    6. In my bag is my English book. 7. In the room are my parents. **二、名词所有格** 1. Jane’s bed, my sister’s book, my parents’ son 2. 狗的名字 - the name of the dog 我的全家福 - a photo of my ...

    五年级下册英语剑桥Join in知识要点汇总.pdf

    - `I have to ask my Mum first.`(我不得不问问我的妈妈。) - `There’s one over there.`(那边有一个。) - `Phone your mum and your grandma.`(给你的奶奶和妈妈打电话。) - `Hello, is that Mike?`(您...

    自我介绍的模板.doc

    I even created my own homepage, becoming the first in my class to do so.” 接着,展示你的毅力和专注:“I am a person with great perseverance. During the preparation for the entrance examination, I ...

    考研英文自我介绍万能模板精选.doc

    I even created a personal homepage, being the first one in my class to do so.” 4. **性格与能力**:选择一些描述个人品质的形容词,如细心、有条理、稳重、负责、可靠、高效、进取、适应力强、友善等,来...

    复试英语自我介绍五篇简洁版精选.doc

    I am also passionate about English, often participating in English corners to enhance my oral English skills.” 5. **学习目标**:阐述继续深造的原因和期望,如:“Realizing that I needed more ...

    大学英文自我评价范文.docx

    And I am the first one in my class who owns a homepage.” 6. **恒心与毅力**:“During the days preparing for the first examination, I insisted on running every day, no matter what the weather was ...

    新目标七年级上册每单元英语作文范文.doc

    Zhang is my first name, and Peng is my last name. I'm a cheerful boy. I'm a student in Class 2, Grade 7. My phone number is 13800138000. ``` 5. **Unit 2** - **家庭介绍** 这个单元的作文要求写一封信...

    考研复试英语自我介绍范文两则精选.doc

    6. **英语能力提升**:描述自己参加英语角提高口语,并通过写作来提升书面表达:“I often go to English corner to practice my oral English on every Thursday, and write compositions to improve my written ...

    大学生英文自我介绍_5.docx

    突出自己的专业技能,如自学网页设计并成功创建个人主页:“I found web design very interesting, so I learned it very hard and created a homepage for myself within half a month, being the first one in my ...

    辽宁诗港市黑沟中学七年级英语上册Unit1Myname’sGinaSelfcheck课件新版人教新目标版

    乘坐飞机需要 "ID card",表明自己用 "I am…",打招呼可以用 "Hi/Hello",介绍名字用 "My name is…",他/她的名字则用 "his/her",注意 "look" 表示抬头看,"answer" 是回答 "question","last" 意为最后,"first...

    大学英语的自我介绍范文.docx

    3. **学术背景与成就**:提及你的教育经历和所取得的成就,如:“my undergraduate period will be accomplished in Chang'an University in July, 20____; and now, I am trying my best for obtaining a key to ...

    新版Joinin五年级下册期末复习总结.pdf

    - My cousin Yanmei works hard at English.(我的表姐闫梅努力学习英语。) - She likes English very much.(她非常喜欢英语。) - She collects many English storybooks.(她收集了许多英语故事书。) - She...

Global site tag (gtag.js) - Google Analytics