由买买提看人间百态

topics

全部话题 - 话题: mockito
1 (共1页)
p*******n
发帖数: 2697

发帖数: 1
2
Job Description:
Align Technology is the industry leader and innovator in medical devices
which focuses on revolutionizing the dental and orthodontic industry. Align
Technology is looking for a Sr. Java Developer for our expanding San Jose,
CA office. This exciting new role would be part of a culture that is helping
to improve lives every day through digital dentistry.
The Sr. Java Developer should have exceptional skills with API development.
This role will be part of Align Technology goal to d... 阅读全帖
g**e
发帖数: 6127
3
来自主题: JobHunting版 - 做题是一种状态
为啥?我喜欢mockito/jmockit,但是这个组都是powermock+easymock

了一
d**e
发帖数: 6098
4
来自主题: JobHunting版 - 做题是一种状态
也没什么特别的理由,只是觉得它不好用
自己组都是用mockito+powermock,除非改别人组的code才用easymock
l*****a
发帖数: 14598
5
来自主题: JobHunting版 - 做题是一种状态
我只会mockito,
好奇的是写这个能找到多少bug?
p*****p
发帖数: 379
6
来自主题: JobHunting版 - 请教A家题
Nope, you could mock them (e.g. using Mockito/JMockit)
a**********0
发帖数: 422
7
因为mapper的输出属于中间结果 难于测试
但是有一个package叫mockito 可以做mock up
如果搞hadoop开发 可以尝试一下
m*****l
发帖数: 95
8
mockito是著名的JAVA测试工具啊,Mock各种好用
s********e
发帖数: 340
s*****3
发帖数: 87
10
来自主题: JobHunting版 - amazon onsite面经,已跪
那是因为里面没人罩着。我们组从三流公司跳过来的烙印,号称10年业界经验,spring
专家,要他照着现有mockito例子来写个测试都不会,编程习惯也是一塌糊涂。
感觉老中要进到同一个公司/同一个组,能力要比同公司周围的烙印要高一个等级才行。
n*****5
发帖数: 984
11
Amplify : 做K12教育的公司
HackerRank online coding。需要自己写读入函数。有点像nearest common ancestor
with parents。 最后快一半的test case 没过,我也不知道问啥,也没搞明白怎么调
试... 就没有然后了。
MLB : 专做baseball相关的公司,好像很大,还在扩招。
core java question, hashcode equals.
然后问了很多spring的问题。 why use spring mvc, 怎么deploy jar, container
是啥。。。
没算法,电面就挂了。
Portware: 好像做交易平台的。 电面全是core java 相关的小问题。
Diff : String , StringBuffer, StringBuilder
Serialize, deserialize, transient
final var, method, class
try catch finally. can go with only try and finally . When ... 阅读全帖
s*****r
发帖数: 43070
12
来自主题: JobHunting版 - 想不通为啥tester比engineer便宜
正在办公室里面debug integration test的苦逼码农飘过,家里的环境太难debug了
unit test算个毛,一天能写2,30个mockito,跟玩一样。integration test才是真难
写,各种component和service api都要work as expected,每天能写好2,3个就不错了。


cluster
p******z
发帖数: 165
13
【 以下文字转载自 Seattle 讨论区 】
发信人: plainxyz (plain), 信区: Seattle
标 题: SDET opportunity in Seattle, 有兴趣的请站内联系!
发信站: BBS 未名空间站 (Thu Jul 23 16:18:24 2015, 美东)
Job Description
Software Development Engineer in Test (SDET)
Full Time
Seattle, Washington
Our Company develops advanced, intuitive, and high-quality products that
drive efficiency, productivity, and
manage logistics at marine and break-bulk terminals around the globe. We’
re seeking a motivated Software Engineer in
Test (SDET), with strong objec... 阅读全帖
s****e
发帖数: 275
14
来自主题: JobHunting版 - 招聘 SW Quality Engineer-Plano TX
Title: SW Quality Engineer
Location: Plano, TX
Pay rate: 57/hour
Duration: 10 month W2 contact with extension( if qualified )
感兴趣的站内信联系
Job Description:
About Intuit Inc.
Intuit is a leading software provider of business and financial management
solutions for small and mid-sized businesses, consumers and accounting
professionals. You probably know us by our flagship products, QuickBooks&#
174;, Quicken® and TurboTax®, but that's just the start. We are
currently going through a funda... 阅读全帖
t********c
发帖数: 28
15
来自主题: JobHunting版 - 请问如何成为组里的lead
这些事情当然不是最好的事情,也不太能靠这个招手下,但senior都没做到就想着有人
投靠你,这又不是玄幻小说
帮别人写unittest当然格局很低,但你写出来的是mockito这样的东西格局如何了呢
G里面一个presubmit的系统就养了多少人
类似memory profile的事情都是大家不想搞,做好了又很有价值,还可以很简单量化效
果的事情。
跳进一个60人组,干掉一群老人,拿最好的项目不是不可能,可惜我比较蠢,玩不起来
f********a
发帖数: 367
16
小姐, 如果一个人有过3,4份工作, 用过java, C#, database很正常吧。。
我给你写个我用过的:
C++, C#, java, 这些都是一年以上用过
python, flex, 用过几个月
database用过:
mysql, microsoft sql, Hbase,
operating system 用过 windows, linux
framwork就更多了
storm, zookeeper, spring, google guice, maven, mockito, junit...
你build 一个complex system, 用的东西肯定是很多的。
m*****n
发帖数: 204
17
来自主题: JobHunting版 - 什么是mock test?
If java, check out mockito's user guide and you'll get the idea.
Python has its built-in mock framework, plus 3rd party ones.
C++ has google mock.
G******n
发帖数: 572
18
来自主题: JobHunting版 - 什么是mock test?
想象uni test只需要测试实现的功能,而不关心其他对象的实现,就需要mock这些无关
的对象或属性,或者行为,而不是去new他
看看mockito
API 就知道了
j**********r
发帖数: 3798
19
来自主题: JobHunting版 - 王垠测试的道理写的不错呀
这哥们连senior都不够格,随便批几条。
"有些 C# 程序员,为了测试而加入大量的 interface 和 reflection,因为这样可以
在测试的时候很方便的把一片代码替换成 mock。结果你就发现这程序里每个类都有一
个配套的 interface,还需要写另外一个 mock 类,去实现这个 interface。"
没写过C#,但是有reflection的语言都有Mock类库,类似Mockito, JMockit之类都可以
让你避免写Mock类,并且不需要是interface。不懂得用类似类库写测试,还停留在手
工写mock的都是初级程
序员。
“为不可能再出现的 bug 大费周折,写 reproducer,构造各种数据结构去验证它,保
证它下次不会再出现,其实是多此一举。同样的低级错误就算再出现,也很可能不在同
一个地方。写测试不但不能保证它不再发生,而且浪费你很多时间。”
写个测试重现bug,以便于证明fix正确只是其中的一个目的。另一个目的是这个bug出
现,就说明这块地方缺乏coverage。不写测试,怎么保证将来别人修改相关代码,不会
出现相似的错误?这哥们纯以个人... 阅读全帖
s*****r
发帖数: 43070
20
来自主题: JobHunting版 - 王垠测试的道理写的不错呀
对,是个类都可以写mock啊,不用有interface,java可以自动生成动态类,估计没用
过mockito
j**********r
发帖数: 3798
21
来自主题: JobHunting版 - 王垠测试的道理写的不错呀
我都说了,mock framework可以让你直接mock 任何类调用的返回值,并不需要被测
试类
特地声明一
个接口,也没有再写新的mock类。
所以什么不方便跳转就是无知而已。你不信先去看看mockito 测试怎么写的。
c*****e
发帖数: 3226
22
来自主题: JobHunting版 - 世界上最牛逼的 Java 程序员
我的意思是和 junit/hibernate 类似的库多如牛毛。比如 guice, Lombok, mockito.
这些只能算将,不是帅。另外写 concurrent Java lib那位大牛居然没在榜上?
帅只能是 Java + ?

发帖数: 1
23
Job Description:
Align Technology is the industry leader and innovator in medical devices
which focuses on revolutionizing the dental and orthodontic industry. Align
Technology is looking for a Sr. Java Developer for our expanding San Jose,
CA office. This exciting new role would be part of a culture that is helping
to improve lives every day through digital dentistry.
The Sr. Java Developer should have exceptional skills with API development.
This role will be part of Align Technology goal to d... 阅读全帖
j********r
发帖数: 96
24
来自主题: Seattle版 - Sr. Software Engineer (JAVA) Full Time
We are looking for a Full Time Senior Software Engineer (Java). You will be
designing, developing, implementing, documenting and maintaining systems
applications.
If you are interested contact: J**[email protected]
All applicants must be available and able to work any U.S. position
Responsibilities and Deliverables:
•Analyzes, designs, develops, implements, documents and maintains
applications systems, working on moderately complex to highly complex work
tasks or project assignments.
̶... 阅读全帖
p******z
发帖数: 165
25
Job Description
Software Development Engineer in Test (SDET)
Full Time
Seattle, Washington
Our Company develops advanced, intuitive, and high-quality products that
drive efficiency, productivity, and
manage logistics at marine and break-bulk terminals around the globe. We’
re seeking a motivated Software Engineer in
Test (SDET), with strong object-oriented programming skills, good
understanding of automation frameworks, object
mocking frameworks, scripting knowledge, and a passion for constant
... 阅读全帖
p******z
发帖数: 165
26
【 以下文字转载自 JobHunting 讨论区 】
发信人: plainxyz (plain), 信区: JobHunting
标 题: SDET opportunity in Seattle, 有兴趣的请站内联系!
发信站: BBS 未名空间站 (Thu Jul 23 16:28:59 2015, 美东)
LOCAL CANDIDATE ONLY, JAVA EXPERT
WILL PROVIDE H1b SPONSORSHIP
Software Development Engineer in Test (SDET)
Full Time
Seattle, Washington
Our Company develops advanced, intuitive, and high-quality products that
drive efficiency, productivity, and
manage logistics at marine and break-bulk terminals around the globe. We’
re seeking a motivate... 阅读全帖
W*******e
发帖数: 1268
27
来自主题: Database版 - 要不从最底层的QA做起?
要做Java的QA至少要做好这些准备
1. Maven和Ant要懂一个,推荐前者,当然公司要用后者也要能pick up
2. 基本的JUnit和Unit Test Framework要熟悉,要能写TestCase。Mock Framework比
如JMockit, Mockito, 或者PowerMock要懂一点
3. Static Code Scanner比如PMD, FindBug要懂一点
4. Linux系统要懂一些,能在Linux搭建automated building system和静态代码自动
扫描。
5. Java语言最好中级以上。熟悉Java的行命令。
6. 熟悉code常见的security问题,这些往往要优先修改
7. 熟悉SVN或者CVS系统
8. 对代码或者Java产品做regression test
9. 如果用Spring能做Spring Unit Test。如果有Web能做Selenium等动态测试。如果
有数据库程序也能写TestCase最好。
10. 写文档和开会

了8
s******e
发帖数: 493
28
well you will feel it "very special" if you have a team policy of 100%
coverage, and for the case where you need to mockito many, many things to
test the nonexisting branch.
c*****e
发帖数: 3226
29
用OpenGSE 很灵活, 感觉除了Hibernate,就是基本上POJO了。测试用用mockito.
spring or
Guice for
injection.个人很喜欢Guava. akka
c*****e
发帖数: 3226
30
不要浪费时间学j2ee了,了解servlet, spring injection, mockito,hibernet够你游
刃有余写代码了。再学点些ajax web server push, web framework就能做老年工程师
了。再学习mapreduce, non sql 就是architecture 了
g*****g
发帖数: 34805
31
来自主题: Java版 - what is really hard is testing
I don't quite understand your complaint. It wasn't like the alternative is
easier to test. @Component is like a global service that has namespace, that
's much different from global variables. With mockito you can inject mock
dependencies for unit test.

global
dependencies,
like
g*****g
发帖数: 34805
32
来自主题: Java版 - 在AWS如何作测试
If you are really doing unit test, you want to mock dependencies anyway, try
mockito. If you are doing integration test, you can run your service in a
test stack in the cloud.
g**e
发帖数: 6127
33
来自主题: Java版 - 在AWS如何作测试
DynaoDB has local testing tool, similar to hypersonic. SWF has its own
testing framework.
For others you can simply mock dependencies using mockito or jmockit.
r****y
发帖数: 26819
34
不是什么牛人,只是在说常识而已。。。
测试是做产品必需的,junit,mockito,powermock这些。
r****y
发帖数: 26819
35
不是什么牛人,只是在说常识而已。。。
测试是做产品必需的,junit,mockito,powermock这些。
g*****g
发帖数: 34805
36
不懂 gtest是啥,常见的 java 单元测试的架构有junit, testng, mockito等
g*****g
发帖数: 34805
37
recommend testng and mockito
g*****g
发帖数: 34805
38
Maven -> gradle
JUnit -> testng, mockito, Spock
integration with cloud for continuous delivery, deployment
p*****2
发帖数: 21240
39
来自主题: Programming版 - 多少公司用 java guice 这烂玩意?

我觉得测试有mockito就够了。
我感觉为了自己测试容易,使得caller的负担加大,有点本末倒置。
j*******l
发帖数: 1066
40
来自主题: Programming版 - 多少公司用 java guice 这烂玩意?
你举个例子 怎么remove final 然后用mockito测试? setter injection?
1 (共1页)