100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Eejrcicio numero mayor JUnit $7.79   Add to cart

Other

Eejrcicio numero mayor JUnit

 2 views  0 purchase
  • Course
  • Institution

Eejrcicio numero mayor del tema 3: Diseño y realización de pruebas de la asignatura entornos de desarrollo del CFGS Desarrollo de aplicaciones multiplataforma realizado en JUnit

Preview 1 out of 2  pages

  • April 7, 2024
  • 2
  • 2021/2022
  • Other
  • Unknown
avatar-seller
package mayorNumero;

public class NumeroMayor {
public static int mayor(int a,int b,int c){
if((a>b)&&(a>c)){
return(a);
}else if(b>c){
return(b);
}else{
return(c);
}
}

/*public static int aMethod(boolean a, boolean b, boolean c){
int ret=0;
if(a&&b){
ret=1;
}else if(c){
ret=2;
}
return(ret);
}*/
}




package mayorNumero;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.*;

import org.junit.After;
import org.junit.jupiter.api.Test;

class NumeroMayorTest {

@Test
public void testMayorUno() {
long esperado=7;
assertEquals(esperado, NumeroMayor.mayor(5,3,7));
}

@Test
public void testMayorDos() {
long esperado=5;
assertEquals(esperado, NumeroMayor.mayor(5,3,4));
}

@Test
public void testMayorTres() {
long esperado=7;
assertEquals(esperado, NumeroMayor.mayor(5,7,6));
}

@Test
public void testMayorCuatro() {
long esperado=9;

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller saragonzalo. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.79. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

62890 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$7.79
  • (0)
  Add to cart