input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
executeWithExceptionThrowingRunnable ( ) { java . lang . RuntimeException expected = new java . lang . RuntimeException ( ) ; java . lang . Runnable runnable = mock ( com . codeaffine . util . concurrent . Runnable . class ) ; doThrow ( expected ) . when ( runnable ) . run ( ) ; java . lang . Throwable actual = thrownB...
org . junit . Assert . assertSame ( expected , actual )
testUpdateCompletedFileNames_onDisposedProgressCollector ( ) { java . util . List < java . lang . String > fileNames = new java . util . ArrayList ( ) ; fileNames . add ( "foo" ) ; progressCollector . dispose ( ) ; progressCollector . updateCompletedFiles ( fileNames ) ; "<AssertPlaceHolder>" ; } getCompletedFileNames ...
org . junit . Assert . assertEquals ( 0 , progressCollector . getCompletedFileNames ( ) . length )
delegateWithSingleMethodHavingNoParameters ( mockit . DelegateTest$Collaborator ) { new mockit . Expectations ( ) { { collaborator . doSomething ( anyBoolean , null , null ) ; result = new mockit . Delegate ( ) { java . lang . String onReplay ( ) { return "action" ; } } ; } } ; java . lang . String result = new mockit ...
org . junit . Assert . assertEquals ( "action" , result )
testExpression11 ( ) { double x = 1.0 ; double y = 2.0 ; java . lang . String expr = "log(x)<sp>^<sp>sin(y)" ; double expected = java . lang . Math . Math . pow ( java . lang . Math . Math . log ( x ) , java . lang . Math . Math . sin ( y ) ) ; net . objecthunter . exp4j . Expression e = new net . objecthunter . exp4j ...
org . junit . Assert . assertTrue ( ( expected == ( e . evaluate ( ) ) ) )
testCompletedSingleStudyFalseWithLessThanTwoCriteria ( ) { d_pm . getEvidenceTypeHolder ( ) . setValue ( BRAType . SingleStudy ) ; org . drugis . addis . presentation . wizard . StudyCriteriaAndAlternativesPresentation pm = d_pm . getStudyBRPresentation ( ) ; org . drugis . addis . entities . Study local = org . drugis...
org . junit . Assert . assertFalse ( ( ( java . lang . Boolean ) ( pm . getCompleteModel ( ) . getValue ( ) ) ) )
testIsDebugEnabled ( ) { org . slf4j . Logger mockLogger = mock ( org . slf4j . Logger . class ) ; when ( mockLogger . getName ( ) ) . thenReturn ( "foo" ) ; when ( mockLogger . isDebugEnabled ( ) ) . thenReturn ( true ) ; io . netty . util . internal . logging . InternalLogger logger = new io . netty . util . internal...
org . junit . Assert . assertTrue ( logger . isDebugEnabled ( ) )
one_$this_contains_any_returns_true_when_any_expression_value_in_array ( ) { com . redhat . lightblue . query . QueryExpression expr = com . redhat . lightblue . eval . EvalTestContext . queryExpressionFromJson ( "{'array':'field6.$this.nf5',<sp>'contains':'$any',<sp>'values':[1,2,3,4,5]}" ) ; com . redhat . lightblue ...
org . junit . Assert . assertTrue ( context . getResult ( ) )
testWbSearchEntitiesEmpty ( ) { java . util . List < org . wikidata . wdtk . wikibaseapi . WbSearchEntitiesResult > results = action . wbSearchEntities ( "some<sp>search<sp>string<sp>with<sp>no<sp>results" , "en" , null , null , null , null ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return snaks . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( results . isEmpty ( ) )
testQueryhasMore ( ) { com . ebay . cloud . cms . query . service . QueryContext qContext = newQueryContext ( com . ebay . cloud . cms . query . service . RAPTOR_REPO , com . ebay . cloud . cms . query . service . RAPTOR_MAIN_BRANCH_ID ) ; qContext . setAllowFullTableScan ( true ) ; qContext . setLimits ( new int [ ] {...
org . junit . Assert . assertFalse ( result . hasMoreResults ( ) )
testVmOptsFromPrefs ( ) { java . lang . String expResult = "-noverify<sp>-XX:TieredStopAtLevel=1<sp>" ; java . lang . String result = com . github . alexfalappa . nbspringboot . Utils . vmOptsFromPrefs ( ) ; "<AssertPlaceHolder>" ; } vmOptsFromPrefs ( ) { java . lang . StringBuilder sb = new java . lang . StringBuilder...
org . junit . Assert . assertEquals ( expResult , result )
testRemove ( ) { collection . remove ( "{<sp>_id:<sp>#}" , friendId ) ; org . jongo . BinaryTest . BinaryFriend actual = collection . findOne ( "{<sp>_id:<sp>#}" , friendId ) . as ( org . jongo . BinaryTest . BinaryFriend . class ) ; "<AssertPlaceHolder>" ; } as ( java . lang . Class ) { return map ( org . jongo . Resu...
org . junit . Assert . assertNull ( actual )
container_null ( ) { java . lang . String json = "{" + ( "\"contact\":<sp>null" + "}" ) ; ezvcard . io . json . JCardDeserializerTest . Container container = mapper . readValue ( json , ezvcard . io . json . JCardDeserializerTest . Container . class ) ; ezvcard . VCard actual = container . contact ; "<AssertPlaceHolder...
org . junit . Assert . assertNull ( actual )
testExceptionTransformation2 ( ) { final boolean [ ] exception = new boolean [ ] { false } ; penv . < java . lang . Void > tx ( ) . handle ( new org . opencastproject . util . data . Effect < java . lang . Exception > ( ) { @ org . opencastproject . util . persistence . Override public void run ( java . lang . Exceptio...
org . junit . Assert . assertTrue ( exception [ 0 ] )
testParseDouble ( ) { @ org . jetbrains . annotations . NotNull java . lang . Object [ ] [ ] tests = new java . lang . Object [ ] [ ] { new java . lang . Object [ ] { "-1E-3<sp>" , - 0.001 } , new java . lang . Object [ ] { "12E3<sp>" , 12000.0 } , new java . lang . Object [ ] { "-1.1E-3<sp>" , - 0.0011 } , new java . ...
org . junit . Assert . assertEquals ( expected , from . parseDouble ( ) , 0.0 )
testGetTagTypeLowerCaseParameters ( ) { tagTypeDaoTestHelper . createTagTypeEntity ( org . finra . herd . service . TAG_TYPE , org . finra . herd . service . TAG_TYPE_DISPLAY_NAME , org . finra . herd . service . TAG_TYPE_ORDER , org . finra . herd . service . TAG_TYPE_DESCRIPTION ) ; org . finra . herd . model . api ....
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . TagType ( new org . finra . herd . model . api . xml . TagTypeKey ( TAG_TYPE ) , TAG_TYPE_DISPLAY_NAME , TAG_TYPE_ORDER , TAG_TYPE_DESCRIPTION ) , resultTagType )
complex_get_test ( ) { com . artemis . utils . IntBag fill = new com . artemis . utils . IntBag ( ) ; net . mostlyoriginal . api . utils . QuadTree . MAX_IN_BUCKET = 1 ; net . mostlyoriginal . api . utils . QuadTree tree = new net . mostlyoriginal . api . utils . QuadTree ( ( - 8 ) , ( - 8 ) , 8 , 8 ) ; fill . clear ( ...
org . junit . Assert . assertEquals ( fill . size ( ) , 0 )
testPermissionWithMasterAndOwnerAce ( ) { masterAce . setDefaultConsumerPermission ( Permission . ASK ) ; masterAce . setDefaultRequiredTrustLevel ( TrustLevel . LOW ) ; ownerAce . setConsumerPermission ( Permission . YES ) ; ownerAce . setRequiredTrustLevel ( TrustLevel . HIGH ) ; joynr . infrastructure . DacTypes . P...
org . junit . Assert . assertEquals ( Permission . YES , consumerPermission )
blank ( ) { "<AssertPlaceHolder>" ; } parse ( java . lang . String [ ] ) { try { jCommander . parse ( args ) ; } catch ( java . lang . Exception e ) { throw new java . lang . IllegalArgumentException ( ( "Unable<sp>to<sp>parse<sp>arguments:<sp>" + ( java . util . Arrays . toString ( args ) ) ) , e ) ; } if ( options . ...
org . junit . Assert . assertThat ( parser . parse ( "<sp>" ) , org . hamcrest . CoreMatchers . is ( "<sp>" ) )
testTakeFewerThanAvailable ( ) { int count = db ( ) . select ( "select<sp>name<sp>from<sp>person<sp>where<sp>name<sp>>?" ) . parameter ( "ALEX" ) . get ( new com . github . davidmoten . rx . jdbc . ResultSetMapper < java . lang . Integer > ( ) { @ com . github . davidmoten . rx . jdbc . Override public com . github . d...
org . junit . Assert . assertEquals ( 2 , count )
durationFromMidnightToMidnightInclusive ( ) { net . time4j . range . ClockInterval interval = net . time4j . range . ClockInterval . between ( net . time4j . PlainTime . midnightAtStartOfDay ( ) , net . time4j . PlainTime . midnightAtEndOfDay ( ) ) . withClosedEnd ( ) ; "<AssertPlaceHolder>" ; } getDuration ( ) { net ....
org . junit . Assert . assertThat ( interval . getDuration ( ) , org . hamcrest . CoreMatchers . is ( net . time4j . Duration . of ( 24 , ClockUnit . HOURS ) . plus ( 1 , ClockUnit . NANOS ) ) )
testParsingEmptyHeaders ( ) { final java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( "REGISTER<sp>sip:127.0.0.1<sp>SIP/2.0\r\n" ) ; sb . append ( "Via:<sp>SIP/2.0/UDP<sp>10.0.1.14:5069;rport;branch=z9hG4bK662351435\r\n" ) ; sb . append ( "Max-Forwards:<sp>70\r\n" 1 ) ; sb . append ( ...
org . junit . Assert . assertThat ( message . getCallIDHeader ( ) . getValue ( ) . toString ( ) , org . hamcrest . CoreMatchers . is ( "Max-Forwards:<sp>70\r\n" 0 ) )
testPersistContactPoint ( ) { ca . uhn . fhir . jpa . dao . r4 . List < org . hl7 . fhir . instance . model . api . IAnyResource > found = toList ( myPatientDao . search ( new ca . uhn . fhir . jpa . searchparam . SearchParameterMap ( Patient . SP_TELECOM , new ca . uhn . fhir . jpa . dao . r4 . TokenParam ( null , "55...
org . junit . Assert . assertEquals ( ( 1 + initialSize2000 ) , found . size ( ) )
returnsSameInstanceOnResolve ( ) { givenScriptFromConfig ( "/v0.18_config_a.xml" ) ; whenReadResolves ( ) ; "<AssertPlaceHolder>" ; } whenReadResolves ( ) { resolvedPostBuildScript = ( ( org . jenkinsci . plugins . postbuildscript . PostBuildScript ) ( postBuildScript . readResolve ( ) ) ) ; }
org . junit . Assert . assertThat ( resolvedPostBuildScript , org . hamcrest . CoreMatchers . is ( postBuildScript ) )
testExtraSubClassWithJaxb ( ) { org . apache . cxf . systest . jaxb . model . Widget expected = new org . apache . cxf . systest . jaxb . model . ExtendedWidget ( 42 , "blah" , "blah" , true , true ) ; org . apache . cxf . systest . jaxb . service . TestService testClient = getTestClient ( ) ; org . apache . cxf . syst...
org . junit . Assert . assertEquals ( expected , widgetFromService )
testSelectWithInArray ( ) { org . simpleflatmapper . jdbc . named . NamedSqlQuery selectInListQuery = org . simpleflatmapper . jdbc . named . NamedSqlQuery . parse ( "select<sp>*<sp>from<sp>Table<sp>where<sp>name<sp>=<sp>?<sp>and<sp>id<sp>in<sp>(?)<sp>" ) ; org . simpleflatmapper . jdbc . QueryPreparer < org . simplefl...
org . junit . Assert . assertSame ( mps , ps )
WithSteppedPricesForParametersStep1_1_FreePeriodBefore_Bug8149 ( ) { int paramValue = 10 ; final int testYear = 2010 ; final long billingTime = getTimeInMillisForBilling ( testYear , Calendar . APRIL , 1 ) ; long subscriptionCreationTime = getTimeInMillisForBilling ( testYear , Calendar . FEBRUARY , 1 ) ; long subscrip...
org . junit . Assert . assertNotNull ( paramNode )
testNumberOfReviewAuthors2 ( ) { java . util . List < org . apache . cxf . jaxrs . ext . search . jpa . Book > books = queryBooks ( "count(reviews.authors)=gt=3" ) ; "<AssertPlaceHolder>" ; } size ( ) { return cache . getSize ( ) ; }
org . junit . Assert . assertEquals ( 0 , books . size ( ) )
shouldCombine ( ) { final com . jeromeloisel . database . scroll . elastic . ElasticScrollingFactory factory = new com . jeromeloisel . database . scroll . elastic . ElasticScrollingFactory ( client ) ; final com . jeromeloisel . db . scroll . api . DatabaseScroll combine = factory . combine ( scroll ) ; "<AssertPlaceH...
org . junit . Assert . assertEquals ( com . jeromeloisel . database . scroll . elastic . CompoundScroll . class , combine . getClass ( ) )
testRecordFromFutureEpochIsDiscarded ( ) { session . setReadEpoch ( 1 ) ; "<AssertPlaceHolder>" ; } isRecordProcessable ( long , long ) { if ( epoch < ( getReadEpoch ( ) ) ) { return false ; } else if ( epoch > ( getReadEpoch ( ) ) ) { return false ; } else { synchronized ( this ) { if ( sequenceNo < ( receiveWindowLow...
org . junit . Assert . assertFalse ( session . isRecordProcessable ( 2 , 15 ) )
testByteArrayCSVFactory ( ) { org . ujmp . core . Matrix m1 = Matrix . Factory . randn ( 8 , 6 ) ; byte [ ] bytes = m1 . exportTo ( ) . byteArray ( ) . asDenseCSV ( ) ; org . ujmp . core . Matrix m2 = Matrix . Factory . importFrom ( ) . byteArray ( bytes ) . asDenseCSV ( ) ; "<AssertPlaceHolder>" ; } asDenseCSV ( ) { r...
org . junit . Assert . assertEquals ( m1 , m2 )
filePolicyLoaderTest ( ) { try { ddf . security . ws . policy . impl . FilePolicyLoader loader = new ddf . security . ws . policy . impl . FilePolicyLoader ( ddf . security . ws . policy . impl . PolicyTest . mockContext , ddf . security . ws . policy . impl . PolicyTest . POLICY_LOCATION ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertNotNull ( loader . getPolicy ( ) )
withOneElement ( ) { java . util . Set < java . util . Set < java . lang . Integer > > subsets = new java . util . HashSet ( ) ; subsets . add ( java . util . Collections . emptySet ( ) ) ; subsets . add ( java . util . Collections . singleton ( 1 ) ) ; "<AssertPlaceHolder>" ; } subSets ( java . util . Set ) { if ( set...
org . junit . Assert . assertEquals ( subsets , s . subSets ( java . util . Collections . singleton ( 1 ) ) )
testByteValue ( ) { "<AssertPlaceHolder>" ; } byteValue ( ) { return ( ( byte ) ( value ) ) ; }
org . junit . Assert . assertEquals ( 10 , new java . lang . Integer ( ( ( int ) ( 10 ) ) ) . byteValue ( ) , 0 )
shortRsNames ( ) { java . util . List < de . hu . berlin . wbi . objects . MutationMention > mutationMentions = seth . findMutations ( "This<sp>is<sp>most<sp>likely<sp>a<sp>false<sp>positive:<sp>rs1<sp>" ) ; "<AssertPlaceHolder>" ; } findMutations ( java . lang . String ) { seth . Set < seth . MutationMention > mutatio...
org . junit . Assert . assertEquals ( mutationMentions . size ( ) , 0 )
testLogExp ( ) { double [ ] epsilon = new double [ ] { 2.0E-16 , 2.0E-16 , 3.0E-16 , 2.0E-15 , 6.0E-15 } ; for ( int maxOrder = 0 ; maxOrder < 5 ; ++ maxOrder ) { org . hipparchus . analysis . differentiation . DSFactory factory = new org . hipparchus . analysis . differentiation . DSFactory ( 1 , maxOrder ) ; for ( do...
org . junit . Assert . assertEquals ( 0.0 , zero . getPartialDerivative ( n ) , epsilon [ n ] )
shouldAddClusterWhenOperationSucceeds ( ) { java . util . List < org . openstack . atlas . service . domain . entities . Cluster > clusters = clusterService . getAll ( ) ; cluster = new org . openstack . atlas . service . domain . entities . Cluster ( ) ; cluster . setDataCenter ( DataCenter . DFW ) ; cluster . setDesc...
org . junit . Assert . assertEquals ( ( ( clusters . size ( ) ) + 1 ) , clusterService . getAll ( ) . size ( ) )
shouldGetServerPortFromUnderlyingRequest ( ) { int expectedServerPort = 8080 ; when ( mockHttpRequest . getServerPort ( ) ) . thenReturn ( expectedServerPort ) ; ro . pippo . pac4j . PippoWebContext context = makePippoWebContext ( ) ; "<AssertPlaceHolder>" ; verify ( mockHttpRequest , times ( 1 ) ) . getServerPort ( ) ...
org . junit . Assert . assertThat ( context . getServerPort ( ) , org . hamcrest . core . Is . is ( expectedServerPort ) )
testIterratorWithValues ( ) { org . dcache . nfs . v4 . xdr . bitmap4 bitmap = bitmap4 . of ( 5 ) ; "<AssertPlaceHolder>" ; } iterator ( ) { return new java . util . Iterator < java . lang . Integer > ( ) { int currentIndex = - 1 ; @ org . dcache . nfs . v4 . xdr . Override public boolean hasNext ( ) { if ( ( ( value )...
org . junit . Assert . assertTrue ( bitmap . iterator ( ) . hasNext ( ) )
classloader_variation_Test ( ) { java . net . URL [ ] urls = new java . net . URL [ ] { new java . net . URL ( "file:test-resources/classpath/single1/beans.jar" ) } ; java . net . URLClassLoader classLoader = new java . net . URLClassLoader ( urls , this . getClass ( ) . getClassLoader ( ) ) ; org . openl . rules . pro...
org . junit . Assert . assertNotNull ( instance )
testRowSerdeCreate ( ) { java . lang . String expected = ( ( "CREATE<sp>EXTERNAL<sp>TABLE<sp>IF<sp>NOT<sp>EXISTS<sp>dataset_myfiles<sp>" + ( ( ( ( ( "WITH<sp>SERDEPROPERTIES<sp>(\'input.regex\'=\'escapeme!\\\'\')<sp>" 8 + "WITH<sp>SERDEPROPERTIES<sp>(\'input.regex\'=\'escapeme!\\\'\')<sp>" 3 ) + "WITH<sp>SERDEPROPERTIE...
org . junit . Assert . assertEquals ( expected , actual )
testTitleImageWithoutCaptionBar ( ) { org . eclipse . swt . widgets . Shell shell = new org . eclipse . swt . widgets . Shell ( display , org . eclipse . swt . SWT . NO_TRIM ) ; org . eclipse . rap . rwt . testfixture . internal . Fixture . markInitialized ( display ) ; org . eclipse . rap . rwt . testfixture . interna...
org . junit . Assert . assertEquals ( 0 , message . getOperationCount ( ) )
testSetData ( ) { com . adobe . acs . commons . errorpagehandler . cache . impl . CacheEntry cacheEntry = new com . adobe . acs . commons . errorpagehandler . cache . impl . CacheEntry ( ) ; final java . lang . String expResult = "hello<sp>world" ; cacheEntry . setData ( expResult ) ; final java . lang . String result ...
org . junit . Assert . assertEquals ( expResult , result )
testMatchesNotDifferentMinor ( ) { com . eclipsesource . tabris . internal . DefaultVersionCheck versionCheck = new com . eclipsesource . tabris . internal . DefaultVersionCheck ( ) ; boolean matches = versionCheck . accept ( "1.4" , "1.3" ) ; "<AssertPlaceHolder>" ; } accept ( java . lang . String , java . lang . Stri...
org . junit . Assert . assertFalse ( matches )
test_parseTNS_ssh ( ) { new com . deepsky . database . ora . TNSUrl ( "test" , "test" , "win7" , "/home/sky/abc.ora" ) ; java . net . URL url = this . getClass ( ) . getClassLoader ( ) . getResource ( "tns/tns_factory_test.ora" ) ; com . deepsky . database . ora . TNSUrl dbUrl = new com . deepsky . database . ora . TNS...
org . junit . Assert . assertEquals ( dbUrl , com . deepsky . database . ora . DbUrlUtil . parse ( dbUrl . serialize ( ) ) )
testGetCoordActionInfo ( ) { answer = 1 ; check = true ; org . apache . oozie . client . TestOozieClientWithFakeServlet . FakeOozieClient client = new org . apache . oozie . client . TestOozieClientWithFakeServlet . FakeOozieClient ( "http://url" ) ; org . apache . oozie . client . CoordinatorAction answer = client . g...
org . junit . Assert . assertNotNull ( answer )
testZeroParameterConstructor ( ) { this . expressionLanguage = new org . kie . workbench . common . dmn . api . property . dmn . ExpressionLanguage ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return rootPath ; }
org . junit . Assert . assertEquals ( "" , expressionLanguage . getValue ( ) )
testShowPopulatedScreenAssets ( ) { when ( libraryService . hasAssets ( any ( org . guvnor . common . services . project . model . WorkspaceProject . class ) ) ) . thenReturn ( true ) ; this . assetsScreen . init ( ) ; verify ( emptyAssetsScreen , never ( ) ) . getView ( ) ; verify ( populatedAssetsScreen , times ( 1 )...
org . junit . Assert . assertFalse ( assetsScreen . isEmpty ( ) )
testCollectionInClass ( ) { final net . sf . qualitytest . blueprint . BlueprintTest_collection . WithCollection wc = net . sf . qualitytest . blueprint . Blueprint . def ( ) . construct ( net . sf . qualitytest . blueprint . BlueprintTest_collection . WithCollection . class ) ; "<AssertPlaceHolder>" ; } getElements ( ...
org . junit . Assert . assertTrue ( wc . getElements ( ) . isEmpty ( ) )
testGeenGemeenteOpgegevenInRelatie ( ) { final nl . bzk . brp . model . bericht . kern . HuwelijkGeregistreerdPartnerschapBericht nieuwSituatie = maakNieuwSituatie ( null ) ; final nl . bzk . brp . model . bericht . kern . ActieBericht actieBericht = maakActieBericht ( nl . bzk . brp . bijhouding . business . regels . ...
org . junit . Assert . assertEquals ( 0 , berichtEntiteits . size ( ) )
testParameters ( ) { java . util . Map < java . lang . String , java . lang . Object > parameters = createBasicParams ( ) ; org . opennms . netmgt . poller . PollStatus status = monitor . poll ( createMonitor ( ) , parameters ) ; "<AssertPlaceHolder>" ; } isAvailable ( ) { return available ; }
org . junit . Assert . assertTrue ( status . isAvailable ( ) )
getRoot ( ) { "<AssertPlaceHolder>" ; } getRoot ( ) { org . junit . Assert . assertEquals ( pluginsFolder . getRoot ( ) . toPath ( ) , pluginManager . getPluginsRoot ( ) ) ; }
org . junit . Assert . assertEquals ( pluginsFolder . getRoot ( ) . toPath ( ) , pluginManager . getPluginsRoot ( ) )
shouldReturnFalseAndAddErrorWhenCheckMaterialFlowComponentUniquenessAndMaterialFlowComponentIsntUnique ( ) { given ( materialsInLocationComponent . getBelongsToField ( com . qcadoo . mes . materialFlow . hooks . LOCATION ) ) . willReturn ( location ) ; given ( materialsInLocationComponent . getBelongsToField ( com . qc...
org . junit . Assert . assertFalse ( result )
testGetAllItems_noItems ( ) { removeTreeItems ( tree . getSWTWidget ( ) ) ; java . util . List < org . eclipse . reddeer . swt . api . TreeItem > items = tree . getAllItems ( ) ; "<AssertPlaceHolder>" ; } getAllItems ( ) { java . util . List < org . eclipse . reddeer . swt . api . TreeItem > list = new java . util . Li...
org . junit . Assert . assertTrue ( items . isEmpty ( ) )
customConnectionFactory ( ) { just . niubi . httprequest . HttpRequestTest . handler = new just . niubi . httprequest . RequestHandler ( ) { @ just . niubi . httprequest . Override public void handle ( org . eclipse . jetty . server . Request request , javax . servlet . http . HttpServletResponse response ) { response ...
org . junit . Assert . assertEquals ( 200 , code )
testMinActivity ( ) { java . util . Set < io . seldon . stream . itemsim . minhash . Hasher > existing = new java . util . HashSet ( ) ; for ( int i = 0 ; i < 100 ; i ++ ) { io . seldon . stream . itemsim . minhash . Hasher h = io . seldon . stream . itemsim . minhash . SimplePrimeHash . create ( existing ) ; existing ...
org . junit . Assert . assertEquals ( 0 , states . size ( ) )
testFilterString15 ( ) { java . lang . String filter = ( ( ( ( org . opennms . features . topology . plugins . topo . asset . layers . NodeParamLabels . ASSET_DISPLAYCATEGORY ) + "=~" ) + ";" ) + ( org . opennms . features . topology . plugins . topo . asset . layers . NodeParamLabels . NODE_FOREIGNSOURCE ) ) + "=testF...
org . junit . Assert . assertEquals ( true , expectedException )
uploadLargeARootFile ( ) { java . io . File fileToUploadFile = new java . io . File ( fr . opensagres . xdocreport . document . tools . remoting . resources . services . client . jaxrs . MainTest . srcFolder , "Simple.docx" ) ; java . lang . String resourceId = "NewSimple.docx" ; java . lang . String [ ] args = new jav...
org . junit . Assert . assertTrue ( uploadedFile . exists ( ) )
testInvalidResponse ( ) { org . jscep . client . CertificateVerificationCallback callback = getCallback ( ) ; byte [ ] bytes = java . lang . String . format ( "X%nY%n" ) . getBytes ( org . apache . commons . io . Charsets . US_ASCII . name ( ) ) ; java . lang . System . setIn ( new java . io . ByteArrayInputStream ( by...
org . junit . Assert . assertTrue ( callback . isVerified ( ) )
test_Float ( ) { com . alibaba . dubbo . common . serialize . ObjectOutput objectOutput = serialization . serialize ( url , byteArrayOutputStream ) ; objectOutput . writeFloat ( 1.28F ) ; objectOutput . flushBuffer ( ) ; java . io . ByteArrayInputStream byteArrayInputStream = new java . io . ByteArrayInputStream ( byte...
org . junit . Assert . assertTrue ( ( 1.28F == ( deserialize . readFloat ( ) ) ) )
testUpdateNoPassOK ( ) { setupDefaultKeystore ( ) ; org . eclipse . kura . core . ssl . SslManagerServiceImpl svc = new org . eclipse . kura . core . ssl . SslManagerServiceImpl ( ) ; org . eclipse . kura . crypto . CryptoService csMock = mock ( org . eclipse . kura . crypto . CryptoService . class ) ; svc . setCryptoS...
org . junit . Assert . assertTrue ( visited . get ( ) )
testCrea ( ) { mx . edu . um . mateo . rh . dao . ColegioDaoTest . log . debug ( "crea" ) ; mx . edu . um . mateo . rh . model . Colegio colegio = new mx . edu . um . mateo . rh . model . Colegio ( ) ; colegio . setNombre ( "Test" ) ; colegio . setStatus ( "A" ) ; colegioDao . crea ( colegio ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertNotNull ( colegio . getId ( ) )
whenHasNextThenResultTrue ( ) { boolean result = convertedIterator . hasNext ( ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return ( cursor ) != ( size ) ; }
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( true ) )
deveObterNnidadeTributavelComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . lang . String unidadeTributavel = "7wqG4h" ; produto . setUnidadeTrib...
org . junit . Assert . assertEquals ( unidadeTributavel , produto . getUnidadeTributavel ( ) )
testCreateNotificationSchema ( ) { org . kaaproject . kaa . common . dto . NotificationSchemaDto schemaDto = createNotificationSchema ( null , NotificationTypeDto . SYSTEM ) ; "<AssertPlaceHolder>" ; org . kaaproject . kaa . server . control . ControlServerNotificationSchemaIT . LOG . debug ( "Create<sp>notification<sp...
org . junit . Assert . assertNotNull ( schemaDto . getId ( ) )
byBadPath ( ) { java . util . Optional < org . jooby . MediaType > type = org . jooby . MediaType . byPath ( java . nio . file . Paths . get ( "file" ) ) ; "<AssertPlaceHolder>" ; } empty ( ) { org . junit . Assert . assertEquals ( "x<sp>=<sp>4;" , new org . jooby . assets . Jshint ( ) . set ( org . jooby . assets . Js...
org . junit . Assert . assertEquals ( java . util . Optional . empty ( ) , type )
no_exception_should_be_thrown_if_data_is_expected_with_mixed_ids ( ) { com . lordofthejars . nosqlunit . couchdb . integration . WhenComparingCouchDbDataset . couchDbOperation . insert ( toByteArrayInputStream ( com . lordofthejars . nosqlunit . couchdb . integration . WhenComparingCouchDbDataset . COUCHDB_DATASET_WITH...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( true ) )
testUserExtensionsIsNullByDefault ( ) { "<AssertPlaceHolder>" ; } getUserExtensions ( ) { return userExtensions ; }
org . junit . Assert . assertNull ( configuration . getUserExtensions ( ) )
testIntegerBitwiseOperatorsCase ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "public<sp>void<sp>doBitwiseOperation()<sp>{" ) ; _builder . newLine ( ) ; _builder . append ( "\t" ) ; _builder . append ( "if<sp>((1<sp>&...
org . junit . Assert . assertEquals ( _builder_1 . toString ( ) , body )
testResponseNull ( ) { de . sstoehr . harreader . model . HarEntry entry = new de . sstoehr . harreader . model . HarEntry ( ) ; entry . setResponse ( null ) ; "<AssertPlaceHolder>" ; } getResponse ( ) { if ( ( response ) == null ) { response = new de . sstoehr . harreader . model . HarResponse ( ) ; } return response ...
org . junit . Assert . assertNotNull ( entry . getResponse ( ) )
iter_truncate_04 ( ) { java . util . List < java . lang . String > data = java . util . Arrays . asList ( "a" , "b" , "c" ) ; java . util . Iterator < java . lang . String > iter = new org . apache . jena . atlas . iterator . IteratorTruncate ( data . iterator ( ) , ( item ) -> item . equals ( "koala" ) ) ; long n = or...
org . junit . Assert . assertEquals ( 0 , n )
shouldReturnNullWhenBindTypeIsNotMatched ( ) { org . ei . drishti . service . reporting . IReporter reporter = reporterFactory . reporterFor ( "NonExistentBindType" ) ; "<AssertPlaceHolder>" ; } reporterFor ( java . lang . String ) { if ( entityType . equalsIgnoreCase ( org . ei . drishti . service . reporting . CHILD_...
org . junit . Assert . assertNull ( reporter )
inbound ( ) { "<AssertPlaceHolder>" ; oasis . names . tc . emergency . edxl . de . _1 . EDXLDistribution request = new oasis . names . tc . emergency . edxl . de . _1 . EDXLDistribution ( ) ; inboundAdminDistEndpoint . sendAlertMessage ( request ) ; }
org . junit . Assert . assertNotNull ( inboundAdminDistEndpoint )
testReportWithZeroHistoryTTL ( ) { prepareCaseInstances ( org . camunda . bpm . engine . test . history . CleanableHistoricCaseInstanceReportTest . CASE_DEFINITION_KEY , ( - 6 ) , 0 , 5 ) ; prepareCaseInstances ( org . camunda . bpm . engine . test . history . CleanableHistoricCaseInstanceReportTest . CASE_DEFINITION_K...
org . junit . Assert . assertEquals ( 1 , reportResults . size ( ) )
testPattern ( ) { boolean expResult = true ; javax . xml . xpath . XPathExpression expr = xpath . compile ( "string-length(//xs:element[@name='patternField']//xs:pattern/@value)<sp>=<sp>5" ) ; boolean result = ( ( java . lang . Boolean ) ( expr . evaluate ( schemaDocument , XPathConstants . BOOLEAN ) ) ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( expResult , result )
debieraEliminarEstado ( ) { log . debug ( "Debiera<sp>eliminar<sp>CIudad" ) ; mx . edu . um . mateo . colportor . model . Ciudad ciudad = new mx . edu . um . mateo . colportor . model . Ciudad ( "test" ) ; ciudadDao . crea ( ciudad ) ; "<AssertPlaceHolder>" ; this . mockMvc . perform ( post ( Constantes . PATH_CIUDAD_E...
org . junit . Assert . assertNotNull ( ciudad )
getContentFromTemplateFile ( ) { java . lang . String content = templateService . getContentFromTemplateFile ( templateFile , root ) ; com . dianping . paas . repository . template . TemplateServiceTest . logger . info ( content ) ; "<AssertPlaceHolder>" ; } getContentFromTemplateFile ( java . io . File , java . util ....
org . junit . Assert . assertNotNull ( content )
test_ushort_disc_union_manual ( ) { org . jacorb . test . orb . UShortDiscUnion testValue = new org . jacorb . test . orb . UShortDiscUnion ( ) ; testValue . s ( "foo" ) ; org . omg . CORBA . Any outAny = setup . getClientOrb ( ) . create_any ( ) ; outAny . type ( org . jacorb . test . orb . UShortDiscUnionHelper . typ...
org . junit . Assert . assertTrue ( outAny . equal ( inAny ) )
testM70DifferentGranularities ( ) { fr . inria . main . CommandSummary command = fr . inria . astor . test . repair . evaluation . regression . MathCommandsTests . getMath70Command ( ) ; command . command . put ( ExtensionPoints . TARGET_CODE_PROCESSOR . argument ( ) , "statements" ) ; command . command . put ( Extensi...
org . junit . Assert . assertTrue ( ( ( variantss . size ( ) ) > 0 ) )
shouldGetCorrectContentEncodingRetrievingPropertiesWithStreaming ( ) { java . lang . String asianText = "例子" ; java . lang . String germanText = "" ; java . lang . String complicatedString = asianText + germanText ; java . lang . String entity = org . neo4j . server . rest . domain . JsonHelper . createJsonFrom ( java ...
org . junit . Assert . assertEquals ( complicatedString , response )
testGetById ( ) { org . springframework . data . solr . ExampleSolrBean bean1 = new org . springframework . data . solr . ExampleSolrBean ( "id-1" , "one" , null ) ; org . springframework . data . solr . ExampleSolrBean bean2 = new org . springframework . data . solr . ExampleSolrBean ( "id-2" , "two" , null ) ; solrTe...
org . junit . Assert . assertEquals ( bean1 . getId ( ) , beanReturned . get ( ) . getId ( ) )
methods_returned ( ) { int nbMethods = visitor . numberOfMethodDeclarations ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 3 , nbMethods )
testReplaceWithCanonicalization ( ) { org . w3c . dom . Document documentInit = xmlHelpers . getXMLDocumentOfSAMLMessage ( messageSimpleSAMLphpWithSig ) ; java . lang . String SAMLMessage = xmlHelpers . getStringOfDocument ( documentInit , 2 , true ) ; org . w3c . dom . Document document = xmlHelpers . getXMLDocumentOf...
org . junit . Assert . assertEquals ( true , xmlHelpers . validateSignature ( documentSigned ) )
testSubject ( ) { initPorts ( ) ; com . devexperts . rmi . test . RMICommonTest . SomeSubject trueSubject = new com . devexperts . rmi . test . RMICommonTest . SomeSubject ( "true" ) ; com . devexperts . rmi . test . RMICommonTest . SomeSubject falseSubject = new com . devexperts . rmi . test . RMICommonTest . SomeSubj...
org . junit . Assert . assertEquals ( summator . sum ( 256 , 458 ) , ( 256 + 458 ) )
testToStringService ( ) { com . streamsets . datacollector . validation . Issue service = new com . streamsets . datacollector . validation . Issue ( "HappinessGenerator" , "SadnessService" , "a" , "b" , com . streamsets . datacollector . validation . TestIssue . RandomError . ERR_001 ) ; "<AssertPlaceHolder>" ; } toSt...
org . junit . Assert . assertNotNull ( service . toString ( ) )
testLog10Definition ( ) { double [ ] epsilon = new double [ ] { 3.0E-16 , 3.0E-16 , 8.0E-15 , 3.0E-13 , 8.0E-12 } ; for ( int maxOrder = 0 ; maxOrder < 5 ; ++ maxOrder ) { for ( double x = 0.1 ; x < 1.2 ; x += 0.001 ) { org . apache . commons . math4 . analysis . differentiation . DerivativeStructure dsX = new org . ap...
org . junit . Assert . assertEquals ( 0 , zero . getPartialDerivative ( n ) , epsilon [ n ] )
testMethodOneParamsStringSuccessful ( ) { japicmp . filter . JavadocLikeBehaviorFilter filter = new japicmp . filter . JavadocLikeBehaviorFilter ( "japicmp.Test#method(japicmp.Param)" ) ; javassist . ClassPool classPool = new javassist . ClassPool ( ) ; javassist . CtClass ctClass = japicmp . util . CtClassBuilder . cr...
org . junit . Assert . assertThat ( filter . matches ( ctBehavior ) , org . hamcrest . core . Is . is ( true ) )
getBean_returnsInstance ( ) { final com . baeldung . di . spring . IndexApp indexApp = applicationContext . getBean ( "indexApp" , com . baeldung . di . spring . IndexApp . class ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( indexApp )
testProcessDataIterable ( ) { java . lang . Iterable < java . lang . Object > expectedIterable = new java . util . ArrayList < java . lang . Object > ( ) ; org . talend . codegen . flowvariables . runtime . MainDataProcessor mainDataProcessor = new org . talend . codegen . flowvariables . runtime . MainDataProcessor ( ...
org . junit . Assert . assertEquals ( expectedIterable , actualIterable )
testAsIntWithDefault ( ) { final org . jboss . dmr . IntModelValue value = new org . jboss . dmr . IntModelValue ( 5 ) ; "<AssertPlaceHolder>" ; } asInt ( int ) { return value ; }
org . junit . Assert . assertEquals ( 5 , value . asInt ( 10 ) )
testM2 ( ) { java . lang . reflect . Method m2 = clazz . getMethod ( "m2" , long . class ) ; checkUnmutated ( 1L , 1L , m2 , clazz ) ; checkUnmutated ( ( - 21L ) , ( - 21L ) , m2 , clazz ) ; java . util . List < de . unisb . cs . st . javalanche . mutation . results . Mutation > mutations = de . unisb . cs . st . javal...
org . junit . Assert . assertEquals ( 2 , mutations . size ( ) )
testList ( ) { java . util . List < com . riversoft . weixin . mp . poi . bean . Business > list = com . riversoft . weixin . mp . poi . Pois . defaultPois ( ) . list ( 0 , 10 ) ; "<AssertPlaceHolder>" ; } list ( int , int ) { java . lang . String url = com . riversoft . weixin . mp . base . WxEndpoint . get ( "url.poi...
org . junit . Assert . assertNotNull ( list )
subQuery_with_alias2 ( ) { java . util . List < java . lang . Integer > ids1 = query ( ) . from ( employee ) . select ( employee . id ) . fetch ( ) ; java . util . List < java . lang . Integer > ids2 = query ( ) . from ( query ( ) . from ( employee ) . select ( employee . id ) . as ( employee ) ) . select ( employee . ...
org . junit . Assert . assertEquals ( ids1 , ids2 )
testJavaSerialiazation ( ) { com . matthewmitchell . peercoinj . core . Block block = new com . matthewmitchell . peercoinj . core . Block ( com . matthewmitchell . peercoinj . core . BlockTest . params , com . matthewmitchell . peercoinj . core . BlockTest . blockBytes ) ; com . matthewmitchell . peercoinj . core . Tr...
org . junit . Assert . assertEquals ( tx , tx2 )
testNoFieldsSpecified ( ) { com . github . jmkgreen . morphia . indexing . TextIndexCommand cmd = new com . github . jmkgreen . morphia . indexing . TextIndexCommand ( ) ; com . mongodb . DBObject keys = cmd . getKeys ( ) ; "<AssertPlaceHolder>" ; } getKeys ( ) { com . mongodb . BasicDBObjectBuilder builder = new com ....
org . junit . Assert . assertNotNull ( keys )
testHandlesWritingContentInAnyOrder ( ) { org . atlasapi . media . entity . Brand brand = new org . atlasapi . media . entity . Brand ( "brand" , "b" , NETFLIX ) ; org . atlasapi . media . entity . Series series = new org . atlasapi . media . entity . Series ( "series" , "s" , NETFLIX ) ; series . setParent ( brand ) ;...
org . junit . Assert . assertThat ( episode . getSeriesNumber ( ) , org . hamcrest . Matchers . is ( 4 ) )
toCollectionLike_A$List_Option ( ) { com . m3 . scalaflavor4j . CollectionLike < java . lang . String > xs = com . m3 . scalaflavor4j . Option . apply ( "foo" ) ; com . m3 . scalaflavor4j . Generator < java . lang . String > gen = com . m3 . scalaflavor4j . Generator . apply ( xs ) ; java . util . List < java . lang . ...
org . junit . Assert . assertThat ( cl . isEmpty ( ) , org . hamcrest . CoreMatchers . is ( true ) )
available_onPartiallyCachedStream ( ) { final java . lang . String testString = "helloWorld" ; final byte [ ] testData = testString . getBytes ( ) ; java . io . InputStream is = new org . exist . util . io . FastByteArrayInputStream ( testData ) ; org . exist . util . io . CachingFilterInputStream cfis = new org . exis...
org . junit . Assert . assertEquals ( testData . length , cfis . available ( ) )
testUpdate2 ( ) { org . jfree . data . xy . XYSeries series = new org . jfree . data . xy . XYSeries ( "Series" , false , true ) ; series . add ( 5.0 , 55.0 ) ; series . add ( 4.0 , 44.0 ) ; series . add ( 6.0 , 66.0 ) ; series . update ( new java . lang . Double ( 4.0 ) , new java . lang . Double ( 99.0 ) ) ; "<Assert...
org . junit . Assert . assertEquals ( new java . lang . Double ( 99.0 ) , series . getY ( 1 ) )
testLiterals ( ) { java . lang . Object [ ] [ ] tests = new java . lang . Object [ ] [ ] { new java . lang . Object [ ] { new org . codehaus . janino . Java . FloatingPointLiteral ( org . codehaus . commons . compiler . Location . NOWHERE , "-0.0D" ) , "-0.0D" } , new java . lang . Object [ ] { new org . codehaus . jan...
org . junit . Assert . assertEquals ( expected , sw . toString ( ) )
testGetItems ( ) { addOne ( ) ; java . util . List < org . pentaho . di . connections . ConnectionManager . Type > types = connectionManager . getItems ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( pageCoords . length ) + ( ints . length ) ; }
org . junit . Assert . assertEquals ( 1 , types . size ( ) )