r*****s 发帖数: 985 | 1 I got the most typical junit problem in ant again. I forgot how I solved
the problem last time. I guess most of people using Junit encountered
this problem before.
Any idea about it? Thanks!
[snip]
unitTests:
BUILD FAILED
...\xxx\build.xml:485: Could not create task or type of type: junit.
Ant could not find the task or a class this task relies upon.
1 You have misspelt 'junit'.
Fix: check your spelling.
no.
2 The task needs an external JAR file to execute
and this is not found at the righ |
|
c******l 发帖数: 3972 | 2 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: coolcool (江湖一担皮), 信区: Programming
标 题: JUnit 的简单问题
发信站: Unknown Space - 未名空间 (Wed May 19 01:16:10 2004) WWW-POST
为什么我安装JUnit后,运行
java junit.swingui.TestRunner junitfaq.SimpleTest
SimpleTest是我写的一个简单Test,在junitfaq package 中,
总是回答 Class not found "junitfaq.SimpleTest"
不管是textui 还是 swingui。
谢谢! |
|
C**5 发帖数: 202 | 3 Group exercise with the 牛牛牛 team – Please bring your laptop with
appropriate setup to do coding exercise in any language of your choice & in
any IDE. It should also have jUnit (or any unit testing framework of your
choice) installed. If you have no preference we recommend Eclipse and jUnit.
时间 2-3小时 |
|
r*****s 发帖数: 985 | 4 the script for the target. I don't see any problem here.
Remember Ant complains about "junit" ...
haltonfailure="yes"
fork="yes"
dir="${basedir}">
m******t 发帖数: 2416 | 5
If it's a small project that can be easily tested, I'd say it's OK not to
use junit _as far as the project itself is concerned_. On the other hand,
you definitely want to get yourself familiar with at least one of these unit
testing frameworks, be it junit or TestNG. | |
|
c*****t 发帖数: 1879 | 6 It'd easier if that junit/testng can automatically read the output
of the code and compares the output from text file (like using
annotations to specify the comparison ouput location). Then I
could potentially do everything without using script. Sigh...
Right now in IDEA, i just need to hit run on the test folder and
everything is tested (the main reason why i use junit). Would be
painful that I have to find other ways. |
|
e***a 发帖数: 1661 | 7 What tool is used to create testing reports from JUnit? |
|
j*********6 发帖数: 407 | 8 最近觉得Junit有必要系统的补一下了 求大神推荐个教程看看 |
|
f****e 发帖数: 923 | 9 最近用做一个junit的小project,自己写java主程序,然后写测试代码,并完成测试,
用eclipse 完成, 简历上怎么吹? |
|
c******f 发帖数: 243 | 10 这junit应该没人关注吧..放在简历上感觉会减分 |
|
f********h 发帖数: 149 | 11 I tried to use them altogether, but there is a problem.
If I invoke junit from ant, it complains the log4j system
is not properly set up. But if I run my code directly from console
using java myclass there is no problem.
Any solution to this? |
|
r*****s 发帖数: 985 | 12 搞定。就是要把dependency copy to $ANT_HOME/lib,
or put them (here is junit.jar) in the classpath |
|
G*O 发帖数: 706 | 13 就是test时候比较省力气,organized是吧?
我的project比较小,是不是就不必学junit了? |
|
l*****b 发帖数: 82 | 14 1. 用Junit模拟多线程Servlet访问
2. 模拟真实Servlet容器处理多线程Servlet访问但不依赖容器
大概就是模拟完全production环境。
请问各位高手们有什么建议? 谢谢。 |
|
A**o 发帖数: 1550 | 15 不知道你的production是什么环境,模拟prod的最佳方式还是
建立一个staging环境吧?
实在不行你自己写一个http服务器?
另外,cactus好像是junit在servlet上面的extention,不知道对你有用吗?
easyMock |
|
k***r 发帖数: 4260 | 16 Sounds like you can just starts multiple threads in the junit test class and
call into the servlet class? |
|
l*****b 发帖数: 82 | 17 以下是我的环境:
jboss, servlet, spring (just IOC container, no mvc), maven, Junit
测试是要在unit test阶段自动完成的。对于我的特殊情况,real container 和
JMeter 是不错的组合, JMeter可以模拟客户端的多线程。但我有以下问题:
1。 如何把JMeter整合到unit test中, 我不太熟悉有没有相关的JMeter API。
2。 如何把jboss加进unit test中, 如在setUp()方法中如何加载要测试的模块和启
动等步骤。 |
|
m******t 发帖数: 2416 | 18
You don't have to drive these from junit. Since you
are using maven, there are maven plugins that let you
incorporate them into your build cycle.
For instance, you could start the container
using the cargo plugin and run the tests using
surefire. I don't know if jmeter has a maven
plugin by now, but it definitely can be driven
from Ant or command line, so it shouldn't be
too hard to hook it into maven. |
|
l*****b 发帖数: 82 | 19 Hi, magicfat, many thx for your technical and financial advice. ; - )
So far, with all others' advice, my final goal is to have a automatic
integration test with JBoss and Maven.
I have developed a small client based on Junit to simulate and generate
multithreaded requests to target server.
There are several potential options:
1. In Maven integration test phase, using Maven plugin cargo to deploy/start
/test/stop/undeploy in Jboss.
2. Using Cactus framework to have in-container test.
3. Develop |
|
c*****t 发帖数: 1879 | 20 I see what you mean. Thanks :)
p.s. any simple approaches to test a function output (multiline) to a text
file
using junit? thx. |
|
g*****g 发帖数: 34805 | 21 junit is just a funtion you setup to compare 2 values.
It doesn't stop you from calling a commandline script
if you want to evaluate that way. |
|
l**********n 发帖数: 8443 | 22 when I run junit test, how can I log the java log to a file? the log is only
logged to a file when running inside glassfish |
|
g*****g 发帖数: 34805 | 23 不懂 gtest是啥,常见的 java 单元测试的架构有junit, testng, mockito等 |
|
|
|
c*****4 发帖数: 1777 | 26 限时招聘5名Senior级别软件测试工程师。已报到1人,另已下2个offer(尚不知道是否
报道)。仍有至少两个空缺。
新毕业如工作年限不够但自信符合其余要求也可投简历。只是可能offer是按level 1/2
给。
有意简历请尽量往测试靠,不要太侧重算法等。站内私信联系。
Software Engineer 3, Quality
Primary Job Responsibilities:
This is a challenging, highly technical quality engineering role requiring
analytical, innovative thinkers who can build cutting edge testing
technologies and use next-generation automation techniques to successfully
certify and automate eBay’s core marketplace platform: a global,
distributed component... 阅读全帖 |
|
c*****4 发帖数: 1777 | 27 限时招聘5名Senior级别软件测试工程师。已报到1人,另已下2个offer(尚不知道是否
报道)。仍有至少两个空缺。
新毕业如工作年限不够但自信符合其余要求也可投简历。只是可能offer是按level 1/2
给。
有意简历请尽量往测试靠,不要太侧重算法等。站内私信联系。
Software Engineer 3, Quality
Primary Job Responsibilities:
This is a challenging, highly technical quality engineering role requiring
analytical, innovative thinkers who can build cutting edge testing
technologies and use next-generation automation techniques to successfully
certify and automate eBay’s core marketplace platform: a global,
distributed component... 阅读全帖 |
|
q***e 发帖数: 90 | 28 It's really weird that you know Junit but failed
to know cppunit!!! cppunit is the counterpart of Junit,
just in a different language. I guess everybody who
knows Junit should also know cppunit. They are sisters.
Almost every paper/webpage which introduces Junit mentions
CPPUNIT and gives links!!! You are just so careless, sigh:) |
|
i***0 发帖数: 8469 | 29 I ran across your resume and wanted to see if you would be interested in an
SDET role in the Los Angeles area with one of our clients working on a very
exciting project in the mobile media space, specifically music. They have
just surpassed 500,000 users and are now #2 to iTunes in terms of growth.
The company’s expansion has made it necessary to find these resources very
quickly. If you would like to take a look please send me your resume along
with the attached interview form.
At the bottom ... 阅读全帖 |
|
a***n 发帖数: 584 | 30 Eclipse 3.1 之后,junit plugin 不是已经在包裹里吗?
不过,一般都是跟 junit 3.8. 如果用 annotation, junit 4 更好一点。 |
|
|
t**********s 发帖数: 930 | 32 只找到了一个 catalina.properties:
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... 阅读全帖 |
|
h*h 发帖数: 27852 | 33 http://www.yinwang.org/blog-cn/2014/12/31/google-story
我和 Google 的故事(2015 修订版)
2009 和 2010 年,两年的夏天我都在 Google 实习,然而最后毕业的时候我却没有为
Google 工作。虽然我心里很清楚这里面的原因,可总有些人觉得不解,为什么居然有
人不想为 Google 工作?如果你是这些人其中之一,那你可能想知道我在 Google 时的
切身感受。
直到将近 2015 年新年的今天,我发现这篇文章仍然具有普遍的意义。面对 Google 的
员工,我仍然是同样的感觉。他们很多人太拿自己的公司当回事了,自高自大,放弃自
己的尊严来舔这个公司的屁股。这些人总觉得好像所有人都希望为 Google 工作,即使
进不了 Google,都想去 Google “蹭饭”似的。如果一个人说“我很厉害”,我也许
会尊敬他,可是如果他说“我为 Google 工作”,以此来显得厉害,我就会鄙视他。我
只尊敬那些尊敬他们自己的人。以自己的公司名声来抬高自己的人,是最被我瞧不起的
,因为他们跟仗着人势的狗没什么区别。
进 G... 阅读全帖 |
|
j*********s 发帖数: 61 | 34 老印朋友forward他们公司的opening,只能网投,正在面,合适的话很快就有回复。虽
然是老印提供的职位,但这个公司老印不多。
Experience:
5-10 years of experience working on financial systems, preferably
trading related technology
5+ years of core Java development (1.5 and up)
3+ years of UI (Swing) development experience
Buy side and/or sell side knowledgeable
Knowledgeable about fixed income, MBS, FX and other markets
BA/BS or advanced degree in Computer Science, Information Systems,
Mathematics or a related field.
Excellen... 阅读全帖 |
|
r****l 发帖数: 32 | 35 this is a coding question for senior java developer. If you can do it,
send answer to my mitbbs mailbox. i will fit in you an interview.
Online Auction Coding Sample Instructions
Implement a solution to the following problem using the latest released
version of Java. Your project should include unit tests using the open
source JUnit framework. The program should be an object-oriented API and
should not include a user interface of any kind. There is no need to
provide any form of data persistence... 阅读全帖 |
|
g**e 发帖数: 6127 | 36 我决定要拒这家公司了,猎头问我有没有其他人可以推荐的,如果有人有兴趣跟我发个
信。我只是起个传递作用,没任何利益因素。有两个职位
基本情况
location: NY long island
Prop trading firm
base在100k以上,bonus不知。如果没有offer的人可以试试。
core java / database role:
Position Description
Our client is one of the world’s leading financial institutions. We are
looking to hire a mid-level to junior java/database developer. This person
will focus on our historical, quantitative and research database systems.
Skills Required
· Minimum 2 - 5 years of Java and Database development ex... 阅读全帖 |
|
k****n 发帖数: 369 | 37 sdet到底干嘛啊?HR让我改简历好match职位
但是你看兄弟不但没用过junit,我连junit和sdet其实没关系都不知道。。。 |
|
d**e 发帖数: 6098 | 38 我不是说junit和sdet没关系,而是想说sdet不是仅仅简单地写junit
sdet不写production code,但code做test automation,保证系统正确性 |
|
w**a 发帖数: 4743 | 39 大部分SDET的工作是写JUNIT之类的工具,少数SDET是用JUNIT的。 |
|
k****n 发帖数: 369 | 40 sdet到底干嘛啊?HR让我改简历好match职位
但是你看兄弟不但没用过junit,我连junit和sdet其实没关系都不知道。。。 |
|
d**e 发帖数: 6098 | 41 我不是说junit和sdet没关系,而是想说sdet不是仅仅简单地写junit
sdet不写production code,但code做test automation,保证系统正确性 |
|
w**a 发帖数: 4743 | 42 大部分SDET的工作是写JUNIT之类的工具,少数SDET是用JUNIT的。 |
|
r*******3 发帖数: 35 | 43 Ask.com, Oakland, CA
Test and Quality Engineer
Summary
Ask.com is looking for a Test and Quality Engineer who is technically
skilled and passionate about testing. The candidate will work side-by-side
with the Development and Release Engineering teams in a fast-paced, Agile/
SCRUM environment. This position must use their knowledge of QA best
practices and methods along with their scripting experience to ensure
quality throughout the site and maintain and extend Ask’s testing framework
including... 阅读全帖 |
|
r*****d 发帖数: 1924 | 44 【 以下文字转载自 WashingtonDC 讨论区 】
发信人: Westridge (西岭), 信区: WashingtonDC
标 题: Java开发人员知识点(更新)
发信站: BBS 未名空间站 (Wed Apr 18 00:03:19 2012, 美东)
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license和JCP。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空间,栈空间,垃圾回收器,static,this,
synchronized,annotations,JUnit,JDBC,JSP/servlet
Java Core APIs: java.lang,java.util,java.io,java.a... 阅读全帖 |
|
c*****e 发帖数: 3226 | 45 【 以下文字转载自 CS 讨论区 】
发信人: biochemputer (Pandora Box), 信区: CS
标 题: orz, 王垠骂完了五道口伊萨卡现在开始骂Google了
发信站: BBS 未名空间站 (Fri Aug 10 17:53:39 2012, 美东)
纯转载
---
http://blog.sina.com.cn/s/blog_5d90e82f010191rh.html
---
我和Google的故事 (2012-08-10 02:58:52)转载▼
分类: 杂谈
也许有人看见过我批判 Google 的那篇英文文章。它有一部分片面性,所以被我从英文
博客上拿下来了。我一直在反思自己在 Google 的经历,也许现在用自己的母语,我可
以得出一个准确一点的结论吧。
也许有人觉得作为一个读了这么多年的 PhD 去给别人做实习生(intern)是一种耻辱
,但是我亲眼看到,从一些名校比如 Yale 毕业的 PhD,在 Google 混了好几年,也不
过是过着差不多的生活。只不过做了 intern 之后我长了经验,知道了自己的价值,以
后不至于落到同样的位置。
这里... 阅读全帖 |
|
b*******d 发帖数: 750 | 46 是个start up,不说名字了,不太好。
题目并不是太难。服务器端接受用户的刷卡服务。
customer1 使用了card1 make了一个purchase
customer2 使用了card2 make了一个purchase
customer3 使用了card1 make了一个purchase
customer1 使用了card2 make了一个purchase
。。。
这是个graph,里面有customer node和card node,上边的客户1 2 3 都是related
customer (connected in the graph)。
设计一个类,query customer id,返回所有related customer;添加一个新的
purchase (就是一个新的customer+card pair),能很快的将其index了。
我的做法是:所有connected 的customer构成一个cluster,created一个cluster id,
Map> M1 表达 (clusterId,customers)。
... 阅读全帖 |
|
c*******h 发帖数: 1467 | 47 也许有人看见过我批判 Google 的那篇英文文章。它好像有一部分片面性,所以被我从
英文博客上拿下来了。我一直在反思自己在 Google 的经历,因为在这个公司工作总是
感觉不对劲,但是却总也说不清楚为什么。也许现在用自己的母语,我可以得出一个准
确一点的结论吧。
受命于危难
先说说我的项目是怎么开始的吧。当我加入的时候,我的老板 Steve Yegge 的小组试
图制造一个跨语言的“服务式”编程工具,叫做 Grok。你可以把它想象成 Eclipse 和
Visual Studio, 但是 Grok 的设计目标不只是检索和分析本机的某一种语言的代码,
而是大规模的检索和分析 Google 的所有项目,所有语言,所有代码。这包括 Google
的“四大语言”:C++, Java, JavaScript, Python,一些工具性的语言:Sawzall,
protobuf 等,还有一些“build file”和所有第三方的库。Grok 的初期设计目标是一
个静态的代码索引服务,只要程序员点击任何一个变量或者函数名,就能“准确”的跳
转到它定义的位置。动态的编辑功能稍后也在陆续加入。
这种... 阅读全帖 |
|
j*********s 发帖数: 61 | 48 老印朋友forward他们公司的opening,只能网投,正在面,合适的话很快就有回复。虽
然是老印提供的职位,但这个公司老印不多。
Experience:
5-10 years of experience working on financial systems, preferably
trading related technology
5+ years of core Java development (1.5 and up)
3+ years of UI (Swing) development experience
Buy side and/or sell side knowledgeable
Knowledgeable about fixed income, MBS, FX and other markets
BA/BS or advanced degree in Computer Science, Information Systems,
Mathematics or a related field.
Excellen... 阅读全帖 |
|
p*u 发帖数: 2454 | 49 实习求职终于uber offer,全职求职始于uber rej,what a life。带着唯一的return
offer继续骑驴找马找全职了。
====感想====
0,千万不要看点科技博客,小文章就觉得懂design了,千万不要!常见design题有什
么用,还是被大牛们按在地上摩擦了!所以下面都是我自己总结出来的合适答案,可能
还是会导致你被按在地上摩擦,大家随便看看。
1,Uber NY的Bar很高,尤其是design bar,不想浪费机会的小伙伴还是申Uber SF吧。
刷算法基本对Uber NY没用的,目前Uber NY就没有new grad,第一批new grad的要求必
然是overflow的。
2,几乎纯Design面试,new grad永远的痛,狠狠一巴掌打在自以为design很熟的我脸
上。面我的四个人都干过小公司CTO甚至大公司的技术核心,“你们这些说名词的new
grad,根本不懂design的境界”。
3,真机IDE测试,能bug free就bug free,对方的笑容不代表他认可你先run再debug。
大家都是专业的,笑容什么都不代表。
4,Uber N... 阅读全帖 |
|
f*******r 发帖数: 976 | 50 Move on.
实习求职终于uber offer,全职求职始于uber rej,what a life。带着唯一的return
offer继续骑驴找马找全职了。
====感想====
0,千万不要看点科技博客,小文章就觉得懂design了,千万不要!常见design题有什
么用,还是被大牛们按在地上摩擦了!所以下面都是我自己总结出来的合适答案,可能
还是会导致你被按在地上摩擦,大家随便看看。
1,Uber NY的Bar很高,尤其是design bar,不想浪费机会的小伙伴还是申Uber SF吧。
刷算法基本对Uber NY没用的,目前Uber NY就没有new grad,第一批new grad的要求必
然是overflow的。
2,几乎纯Design面试,new grad永远的痛,狠狠一巴掌打在自以为design很熟的我脸
上。面我的四个人都干过小公司CTO甚至大公司的技术核心,“你们这些说名词的new
grad,根本不懂design的境界”。
3,真机IDE测试,能bug free就bug free,对方的笑容不代表他认可你先run再debug。
大家都是专业的,笑容什么都不代表... 阅读全帖 |
|