Package uk.ac.cranfield.thesis.client.service

Examples of uk.ac.cranfield.thesis.client.service.ParserServiceAsync


        return "uk.ac.cranfield.thesis.ThesisAE";
    }
   
    public void testCorrectEquation1()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y' = y + x, y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here


       
    }
   
    public void testCorrectEquation2()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y''' = y + x, y=0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testCorrectEquation3()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y ' ' ' = y+x, y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testCorrectEquation4()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y''' = y'' + y' + y + x = 5, y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testNoODE()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y + x", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testToManyVariables()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y' = y + x + z, y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

       
    }
   
    public void testCaseInsensitivity()
    {
        ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
       
        parserService.parseEquation("y'' = y + x + 2*X + 3/Y', y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onSuccess(Equation result)
            {
View Full Code Here

        });
    }
   
    public void testCorrectEquationFunction()
    {
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
        parserService.parseEquation("y''' = y '' + y*y' - y  + x + 4, y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onFailure(Throwable caught)
            {
View Full Code Here

       
    }
   
    public void testNoIndependentVariable()
    {
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
        parserService.parseEquation("y''' = y '' + y*y' - y  + 4, y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onFailure(Throwable caught)
            {
View Full Code Here

       
    }
   
    public void testToManyIndependentVariables()
    {
        final ParserServiceAsync parserService = ParserService.Util.getInstance();
        delayTestFinish(500);
        parserService.parseEquation("y''' = y '' + y*y' - y  + 4 + x + u, y = 0", new AsyncCallback<Equation>()
        {
           
            @Override
            public void onFailure(Throwable caught)
            {
View Full Code Here

TOP

Related Classes of uk.ac.cranfield.thesis.client.service.ParserServiceAsync

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.