Monday, April 25, 2011

Is Regular Woolite Complete

Monge- Espacial

E

Thursday, April 14, 2011

Can I Drink Beer With Oxytetracycline?

Unit Tests (WORKSHOP )

Implementation Unit Tests in my project.

Wednesday, April 13, 2011

Groping Western Chikan

Unit Tests (CLASS)

First, what are the unit tests?
are tests designed to test java classes in isolation and are related to the code and
responsibility of each class and its most critical pieces of code.

Why unit testing?
• Ensures quality of code delivered. It's the best way to detect errors early in the development
. However, this does not guarantee to detect all errors in both integration and acceptance testing are still needed.
• Help to define the requirements and responsibilities of each method in each class
tested.
• It is good how to run proof of concept. When it is necessary to test concepts
without integrating unit tests using a method
becomes effective.
• Allows early in code refactoring. It is not necessary
a cycle of integration for refactoring in the application, just to see how it
test case for refactoring unit of the kind that we are testing in question.
• Allows for stress testing even earlier in the code.
For example, a method that performs a SQL query that exceeds the time of acceptance can optimize
before integrating with the application. • Allows
find errors or bugs early in development.
It has been proved that the earlier errors are corrected, the less it costs to fix them.

In the previous image sequence has to be followed in a program to perform these tests, first we have the class under test (Class Under Test) This test will test functional or "black box" .
The process of a black box test is simple, run the unit test data and the output is observed, compared with the result expected. If the test is satisfied, ie the results obtained and expected are equal, we call it "oracle."
As we get past the black-box testing we can determine that "quantity" of code we've covered, that is, the percentage of code have executed. These are white box testing.
With white box testing we are looking to find fragments of the program are not executed by test cases.
If we find that the results of these tests is less than 100%, we run other cases for up to 100%. If it still does not get that 100%, we should ask what it's worth the piece of code.

To perform unit tests in Java usually uses the JUnit tool.

junit Here the link: http://www.junit.org/
Para descargar JUnit https://github.com/KentBeck/junit/downloads https://github.com/KentBeck/junit/downloads recomiendo descarguen el primero que viene ahí junit4.9b2.zip Sample ya que ese contiene ejemplos con los que podemos realizar las pruebas.

Al descargar, nos posecionamos en la terminal en la dirección dónde está contenido el junit4.9b2.zip lo descomprimimos y configuramos el path entrando a .bashrc y al final ponemos la dirección en la que se encuentra el junit-4.9b2 -src.


Aquí adjunto 2 capturas de pantalla where you access the . bashrc, configure the path, and run the tests one of the examples.



Reference Links:
http://www.informatizando.es/?p=24
http:/ / blog.continuum.cl/wp-content/uploads/2008/08/pruebas-unitarias.pdf

Thursday, April 7, 2011

Best Drugstore Non-comedogenic Concealer

Events, Exceptions and Errors (WORKSHOP)

How about, now I will present the events, except as detailed in the previous post applied to my project.

Excepciones.
 System.out.println ("\tIngrese el ID del Producto-> "); 
try {
ID = lectura.nextInt();
listid.add(ID);
} catch (InputMismatchException e) {
System.err.println("ERROR! EL ID INGRESADO NO CONCUERDA CON UN NUMERO ENTERO");
} 

Al correr el programa lanza la excepción y también un error que finaliza la ejecución del programa.
 

El evento lo he pospuesto hasta que tenga mi interfaz graphic, try to run without the other interface but did not come, so, what the event is pending.
Greetings.

Wednesday, April 6, 2011

Wear Can You Buy Hunter Boots In Ontario

Events, Exceptions and Errors (CLASS)

Good afternoon, this entry will talk about what these events, systematic oversight or programming errors and what can be produced in the system I am developing.


Events.
"Events are the middle class and interact with others or with the user, are responsible to notify that something has happened and to handle it one way or another. The way to handle events in OOP is called transmitter / receiver, also called dispatcher / listener or just dispatcher / listener.
In this pair, the first part (the issuer) will launch the event, while the second is responsible for receiving and handling as needed. The first part will be up to us (the developers of the class) and the second is the responsibility of the user of the class (in principle, us). "



An event applicable I think my project can be a listener in class product so that when the user adds the price of a message that the product has been successfully added.


Exceptions.
"An exception is an object that is generated automatically when an incidental event that prevents normal operation of the program:
- Divide by zero
- No
find a particular file - Use a Null Pointer instead of a reference
an object generated object "exception" contains information about the event occurred and transmits this information to the method from which generated the exception. The occurrence of these exceptional situations cause uncontrolled termination of the program or application. "



An exception in my program can order the product data within a try / catch and if the type of user-entered data does not match the set (a char instead of int, an int instead of float) to send a message that says the data type specified was not correct.

Errors.
"In computing, a fatal error is an error that causes a program crashes (closes). Usually when this happens, data processing that the program was lost.
A fatal error is usually the case in the following cases: * Attempt
make an illegal instruction.
* It has agreed to codes or invalid data.
* The privilege level of an operation is invalid.
* A program is trying to divide by zero (in some systems that follow the standard IEEE floating point, this division produces an infinity and not a fatal error).



There are also other errors, fatal errors system, such as the blue screen of death Windows.




Bibliographic sources and some tutorials with examples.
http://www.alegsa.com.ar/Dic/error% 20fatal.php
http://www.slideshare.net/sgvargas/manejo-de-eventos- en-java-presentation
http://vcalpena.wordpress.com/4-excepciones/
http://heinsohn.wikidot.com/articulos:lineamientos-excepciones
http://www.javadabbadoo.org/cursos/infosintesis.net/javase/paqawt/selectorcolores / paso03javaObserver.html

Tuesday, April 5, 2011

Bb Desert Eagle 1400 Fps

Tapia al Parlamento Andino