there are several cases you can use
Some common Test cases:
TestCase – It is a JUnit test case. It can be extended to test utility classes that are not tied to the Android framework.
AndroidTestCase – It extends JUnit’s TestCase. It doesn’t need to launch an activity to run it. It can be used when user wants to access Resources that depend on Activity Context.
ActivityInstrumentationTestCase2<T extends android.app.Activity> – It provides UI and functional testing for a single activity.
ActivityUnitTestCase<T extends android.app.Activity> – It gives the tested activity an isolated environment. The activity under test will be created with minimal connection to the system infrastructure.
ApplicationTestCase<T extends android.app.Application> – It provides
Tuesday, February 25, 2014
Tuesday, February 11, 2014
how to easily make sql to java String sql
to Solve this issue
I made a homepage that sql can be changed into java String
I hope to help you guys~!
this has 2 function
1. sql to Java sql String
2. java sql String to real sql
example
http://hide.my/6bX
I made a homepage that sql can be changed into java String
I hope to help you guys~!
this has 2 function
1. sql to Java sql String
2. java sql String to real sql
example
http://hide.my/6bX
Thursday, January 23, 2014
Big Hompage with Angular and RequireJS (MVC Pattern)
In the past, usually we made webpage multipages
in each page we have <script></script> tags if we need module
so each page needs to load all scripts that pages need
So it spend a lot of time and make people see loading bar as long as script are loaded
In present. web page trend is changing step by step
today i want to share how to efficiently make big single webpage with angularJS and RequireJS
First Version
This Structure of this project is below screen shots
1. Angualr MVC Model
- explain
1. view: view is only are consis of html files using angular js tags
2. router : this is routing url to which html should be loaded
3. Controllers : this controlls services and logic after views are loaded
4. service : these are functions that load json datas from server using ajax
2. RequireJS Dependency
- explain
1. angular : this is angular library
2. angular-route : this is angular plugin,
once angular under 1.0.8? I'm not sure angular library contatin route
3. angular-start : this defines route module
4. controller-start : this defines controllers
5. route-start : this defines url routing patterns
6. service-start : this defines services related to this project
3. source Review
3-1. this project tree structure
3-2. main.html
- <div ng-view></div> is the frame that html pages are changed into
- <script data-main="js/main" src="js/libs/require.js" ></script>
first main.js will be called
3-3 main.js
3-4 angular-start(angular-init.js)
- define angular
3-5 controller-start(controller-init.js)
- you can use static controller and dynamic controller
static controller : router will directly mapping html
dynamic controllers : router will mapping using url patterns
3-6 router-start(routing.js)
/view/:id is mapped with static controller
/:cate/:sub is mapped width dynamic contollers
3-7 service-start(service-init.js)
4. get Service from controller
mailListController.js
- getting mailService from services tray
- using mailService function
5. I cannot fully explain all source
later I will share my Project samples
if you need right now reply and write you email
Have a good job
Wednesday, January 22, 2014
AngularJs Tutorial~
Below link is a tutorial that I made before
you can see the result in sample page
that html page will provide you edit, updatesource and update result
have fun~
hope to help you~
you can see the result in sample page
that html page will provide you edit, updatesource and update result
have fun~
hope to help you~
Sunday, January 19, 2014
access ssh linux in virtual box
첫번째로 virtualBox Host Network 를 Enable 해줘야 한다.
이거 하느라고 엄청나게 삽질 했음. ㅠㅠ
그런다음 사용하고 있는 가상 OS 셋팅을 해준다.
네트워크로 가서 네트워크를 처음에 열어놓은 Virtual Box Host 로 선택한다
리눅스에서 셋팅을 dhcp 로 자동으로 할당하게 셋팅해놓았다.
그리고 윈도우에서 원갹으로 ssh 로 접속하면 정상적으로 접속 완료
ㅡㅡ V 김치
Thursday, January 16, 2014
Simple usage Router in Node JS
what you need is connect library and connect_router lib
if you want to install command npm install connect
/**
* Created by David on 14. 1. 17.
*/
var connect = require('connect');
var router = require('connect_router');
var server = connect.createServer();
server.use(connect.logger());
server.use(connect.query());
server.use(connect.static(__dirname + '/images'));
server.use(router(function (app) {
app.get('/home/index', function (request, response, next) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.write('index');
response.end();
});
app.get('*', function (request, response, next) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.write('error');
response.end();
});
}));
server.listen(8888, function () {
console.log('8888 is running');
});
if you want to install command npm install connect
/**
* Created by David on 14. 1. 17.
*/
var connect = require('connect');
var router = require('connect_router');
var server = connect.createServer();
server.use(connect.logger());
server.use(connect.query());
server.use(connect.static(__dirname + '/images'));
server.use(router(function (app) {
app.get('/home/index', function (request, response, next) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.write('index');
response.end();
});
app.get('*', function (request, response, next) {
response.writeHead(200, {'Content-Type': 'text/html'});
response.write('error');
response.end();
});
}));
server.listen(8888, function () {
console.log('8888 is running');
});
This is basic sample with connect in NodeJS
User query, and logger given by connect Lib
/**
* Created by David on 14. 1. 17.
*/
var connect = require('connect');
var server = connect.createServer();
server.use(connect.logger());
server.use(connect.query());
server.use(function(request, response){
response.writeHead(200, {'Content-Type' : 'text/html'});
response.end('<h1>'+JSON.stringify(request.query)+'</h1>');
});
server.listen(8888, function(){
console.log('8888 is running');
});
/**
* Created by David on 14. 1. 17.
*/
var connect = require('connect');
var server = connect.createServer();
server.use(connect.logger());
server.use(connect.query());
server.use(function(request, response){
response.writeHead(200, {'Content-Type' : 'text/html'});
response.end('<h1>'+JSON.stringify(request.query)+'</h1>');
});
server.listen(8888, function(){
console.log('8888 is running');
});
Subscribe to:
Posts (Atom)















