input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldSupportCustomMessageSource ( ) { org . springframework . springfaces . message . ObjectMessageSource messageSource = mock ( org . springframework . springfaces . message . ObjectMessageSource . class ) ; given ( messageSource . getMessage ( org . springframework . springfaces . selectitems . ui . UISelectItemsTes...
org . junit . Assert . assertThat ( actual . getLabel ( ) , org . hamcrest . Matchers . is ( "Eins" ) )
processOptionsIname ( ) { org . apache . hadoop . fs . shell . find . Find find = new org . apache . hadoop . fs . shell . find . Find ( ) ; find . setConf ( org . apache . hadoop . fs . shell . find . TestFind . conf ) ; java . lang . String args = "path<sp>-iname<sp>namemask" ; java . lang . String expected = "And(;I...
org . junit . Assert . assertEquals ( expected , expression . toString ( ) )
testWriteAmbiguousOrgs ( ) { java . io . StringWriter writer = new java . io . StringWriter ( ) ; orgManager . writeAmbiguousOrgs ( writer ) ; java . lang . String result = writer . toString ( ) ; java . lang . String expected = org . apache . commons . io . IOUtils . toString ( getClass ( ) . getResource ( "expected_a...
org . junit . Assert . assertEquals ( expected , result )
shouldAssembleExpectedResultForAccessToken ( ) { org . mitre . oauth2 . model . OAuth2AccessTokenEntity accessToken = accessToken ( new java . util . Date ( ( 123 * 1000L ) ) , scopes ( "user_id" 3 , "bar" ) , null , "Bearer" , oauth2AuthenticationWithUser ( oauth2Request ( "clientId" ) , "name" ) ) ; org . mitre . ope...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
testBuildCluster ( ) { java . util . Map < java . lang . String , java . lang . String > hostNames = singletonMap ( "host1" , "HEALTHY" ) ; java . util . Map < java . lang . String , java . util . List < java . lang . String > > map = singletonMap ( "group1" , asList ( "comp1" , "comp2" ) ) ; when ( client . doesBluepr...
org . junit . Assert . assertEquals ( java . lang . String . format ( "%s\n%s" , renderSingleMap ( hostNames , "HOSTNAME" , "STATE" ) , renderMultiValueMap ( map , "HOSTGROUP" , "%s\n%s" 0 ) ) , result )
parseContainsFilter ( ) { org . deegree . filter . Filter filter = parse ( "testfilter17.xml" ) ; "<AssertPlaceHolder>" ; } parse ( java . util . Map ) { java . lang . String procedure = getRequired ( prams , "PROCEDURE" ) ; java . lang . String format = prams . get ( "OUTPUTFORMAT" ) ; if ( format == null ) { format =...
org . junit . Assert . assertNotNull ( filter )
testFlushRemoval ( ) { final org . batoo . jpa . core . test . remove . Parent parent = this . createParent ( ) ; this . persist ( parent ) ; this . flush ( ) ; this . remove ( parent ) ; this . commit ( ) ; "<AssertPlaceHolder>" ; } getCounts ( ) { final int [ ] counts = new int [ 4 ] ; try { for ( int i = 0 ; i < 4 ;...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( new int [ ] { 0 , 0 , 2 , 0 } , this . getCounts ( ) ) )
equalsNull ( ) { "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { else if ( object instanceof org . mcsoxford . rss . RSSBase ) { final org . mcsoxford . rss . RSSBase other = ( ( org . mcsoxford . rss . RSSBase ) ( object ) ) ; if ( ( link ) == null ) { return ( other . link ) == null ; } return link . equa...
org . junit . Assert . assertFalse ( base . equals ( null ) )
testBuildPartialIndex ( ) { final cern . colt . list . ObjectArrayList cts = new cern . colt . list . ObjectArrayList ( ) ; cts . add ( com . anjlab . sat3 . Helper . createFormula ( 1 , 2 , 3 , 2 , 3 , 4 , 3 , 4 , 5 , 4 , 5 , 6 , 5 , 6 , 7 ) ) ; cts . add ( com . anjlab . sat3 . Helper . createFormula ( 2 , 5 , 1 , 5 ...
org . junit . Assert . assertEquals ( 4 , index . pairs ( ) . size ( ) )
testGetGroupCalendarResourceCreatesStagingCalendarResource ( ) { com . liferay . portal . kernel . test . util . GroupTestUtil . enableLocalStaging ( _group ) ; com . liferay . portal . kernel . model . Group stagingGroup = _group . getStagingGroup ( ) ; com . liferay . portal . kernel . service . ServiceContext servic...
org . junit . Assert . assertNotNull ( calendarResource )
testBuild ( ) { java . lang . Boolean alternative = false ; org . lnu . is . domain . specoffer . SpecOfferSubject context = new org . lnu . is . domain . specoffer . SpecOfferSubject ( ) ; context . setAlternative ( alternative ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>SpecOfferSubject<sp>e<sp>WHERE<...
org . junit . Assert . assertEquals ( expected , actualQuery )
testGetPrincipalProviderUnsupportedCallbackException ( ) { org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModule loginModule = org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTest . initLoginModule ( org . apache . jackrabbit . oak . spi . securit...
org . junit . Assert . assertNull ( loginModule . getPrincipalProvider ( ) )
testUnionVsUnionAllRule ( ) { java . lang . String s = "select<sp>*<sp>from<sp>dbo.test<sp>union<sp>select<sp>*<sp>from<sp>dbo.test2;" ; org . sonar . plugins . tsql . checks . custom . Rule sut = org . sonar . plugins . tsql . checks . CustomPluginChecks . getUnionVsUnionALLRule ( ) ; org . sonar . plugins . tsql . he...
org . junit . Assert . assertEquals ( 1 , issues . length )
testObjectToValue ( ) { byte [ ] valBytes = new org . vertexium . serializer . kryo . KryoVertexiumSerializer ( ) . objectToBytes ( new java . util . Date ( ) ) ; "<AssertPlaceHolder>" ; } objectToBytes ( java . lang . Object ) { try { org . vertexium . util . ByteArrayOutputStream baos = new org . vertexium . util . B...
org . junit . Assert . assertEquals ( 10 , valBytes . length )
testGetOrganizationsFilterByCustomFieldWithEqualsAndLocalizedStringTextType ( ) { com . liferay . expando . kernel . model . ExpandoColumn expandoColumn = _addExpandoColumn ( _expandoTable , com . liferay . portal . kernel . test . util . RandomTestUtil . randomString ( ) , ExpandoColumnConstants . STRING_LOCALIZED , E...
org . junit . Assert . assertEquals ( 0 , count )
shouldCorrectlyCompareAllVersionsFromSpecification ( ) { java . lang . String [ ] versions = new java . lang . String [ ] { "1.0.0-alpha" , "2.1.0" 0 , "1.0.0-alpha.beta" , "1.0.0-beta" , "1.0.0-beta.2" , "1.0.0-beta.11" , "1.0.0-rc.1" , "1.0.0" , "2.0.0" , "2.1.0" , "2.1.1" } ; for ( int i = 1 ; i < ( versions . lengt...
org . junit . Assert . assertTrue ( v1 . lessThan ( v2 ) )
testSinglePath ( ) { addSchemaAndEntities ( ) ; try ( grakn . core . server . session . TransactionOLTP tx = session . transaction ( ) . write ( ) ) { graql . lang . query . GraqlCompute . Path query = graql . lang . Graql . parse ( ( ( ( ( "compute<sp>path<sp>from<sp>'" + ( entityId1 ) ) + "',<sp>to<sp>'" ) + ( entity...
org . junit . Assert . assertEquals ( expected , result )
testHostResolveAttempt ( ) { org . apache . hadoop . mapreduce . v2 . app . job . impl . TaskAttemptImpl . RequestContainerTransition rct = new org . apache . hadoop . mapreduce . v2 . app . job . impl . TaskAttemptImpl . RequestContainerTransition ( false ) ; org . apache . hadoop . yarn . event . EventHandler eventHa...
org . junit . Assert . assertEquals ( 0 , expected . size ( ) )
test_getLastSampling_no_sampling ( ) { org . kairosdb . core . datapoints . DoubleDataPointFactory dataPointFactory = mock ( org . kairosdb . core . datapoints . DoubleDataPointFactory . class ) ; org . kairosdb . rollup . List < org . kairosdb . plugin . Aggregator > aggregators = new org . kairosdb . rollup . ArrayLi...
org . junit . Assert . assertThat ( lastSampling , org . hamcrest . CoreMatchers . equalTo ( null ) )
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . kernel . model . Portlet . class , _dynamicQueryClassLoader ) ; dynamicQuery . setProjection ( c...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
retainAll ( ) { r . retainAll ( com . machinezoo . sourceafis . Arrays . asList ( 2 , 4 , 10 ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( com . machinezoo . sourceafis . Arrays . asList ( 4 , 2 ) , r )
testGetPlotStyleEmpty ( ) { "<AssertPlaceHolder>" ; } getPlotStyle ( java . lang . String ) { return java . util . Arrays . stream ( net . sf . latexdraw . model . api . shape . PlotStyle . values ( ) ) . filter ( ( it ) -> it . getPSTToken ( ) . equals ( latexToken ) ) . findFirst ( ) . orElse ( net . sf . latexdraw ....
org . junit . Assert . assertEquals ( PlotStyle . CURVE , net . sf . latexdraw . model . api . shape . PlotStyle . getPlotStyle ( "" ) )
testDeleteVarInstanceInfoLogByDate ( ) { int p = 0 ; java . util . Date date = vilTestData [ ( p ++ ) ] . getDate ( ) ; org . kie . internal . runtime . manager . audit . query . VariableInstanceLogDeleteBuilder updateBuilder = this . variableInstanceLogDelete ( ) . date ( date ) ; int result = updateBuilder . build ( ...
org . junit . Assert . assertEquals ( 2 , result )
testClone ( ) { com . streamsets . pipeline . api . impl . FloatTypeSupport ts = new com . streamsets . pipeline . api . impl . FloatTypeSupport ( ) ; java . lang . Float o = new java . lang . Float ( 1.2 ) ; "<AssertPlaceHolder>" ; } clone ( java . lang . Object ) { java . util . List list = null ; if ( value != null ...
org . junit . Assert . assertSame ( o , ts . clone ( o ) )
testGetRows ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 9 , 9 ) . reshape ( 3 , 3 ) ; org . nd4j . linalg . api . ndarray . INDArray testAssertion = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] [ ] { new double [ ] { 4 , 5 } , new do...
org . junit . Assert . assertEquals ( testAssertion , test )
test_access_settings_whitelist_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
testErrorCounterEventReadFail ( ) { org . apache . flume . instrumentation . SourceCounter sc = errorCounterCommonInit ( ) ; org . apache . flume . channel . ChannelProcessor cp = org . mockito . Mockito . mock ( org . apache . flume . channel . ChannelProcessor . class ) ; org . apache . flume . source . TestSpoolDire...
org . junit . Assert . assertEquals ( 1 , sc . getEventReadFail ( ) )
shouldBePossibleToIterateThroughCallsWhileNewItemsAreAdded ( ) { whenHttp ( server ) . match ( get ( "/" ) ) . then ( ok ( ) ) . mustHappen ( ) ; io . restassured . RestAssured . expect ( ) . statusCode ( 200 ) . when ( ) . get ( "/" ) ; io . restassured . RestAssured . expect ( ) . statusCode ( 200 ) . when ( ) . get ...
org . junit . Assert . assertEquals ( server . getCalls ( ) . size ( ) , 2 )
testLineBreak ( ) { final com . ait . lienzo . client . core . shape . ITextWrapper wrapper = org . kie . workbench . common . stunner . client . lienzo . shape . view . wires . ext . TextWrapperProvider . get ( TextWrapperStrategy . LINE_BREAK , text ) ; "<AssertPlaceHolder>" ; } get ( org . kie . workbench . common ....
org . junit . Assert . assertTrue ( ( wrapper instanceof com . ait . lienzo . client . core . shape . TextLineBreakWrap ) )
testJidSingleField ( ) { org . jivesoftware . smackx . FormField field = new org . jivesoftware . smackx . FormField ( "abc<sp>def" ) ; field . setType ( "jid-single" ) ; field . addValue ( org . apache . vysper . console . HtmlFormBuilderTest . VALUE1 ) ; form . addField ( field ) ; java . lang . String actual = build...
org . junit . Assert . assertEquals ( expected , actual )
testBuildWithDisabledStautsConstaint ( ) { unit . setActive ( false ) ; org . lnu . is . domain . department . type . DepartmentType context = new org . lnu . is . domain . department . type . DepartmentType ( ) ; java . lang . String expected = "SELECT<sp>e<sp>FROM<sp>DepartmentType<sp>e<sp>WHERE<sp>e.crtUserGroup<sp>...
org . junit . Assert . assertEquals ( expected , actualQuery )
parse_empty ( ) { "<AssertPlaceHolder>" ; } parse ( byte [ ] ) { try { return parseAny ( bytes ) ; } catch ( org . codehaus . jackson . JsonParseException error ) { throw new com . psddev . dari . util . JsonParsingException ( "Can't<sp>parse<sp>JSON<sp>bytes!" , error ) ; } catch ( java . io . IOException error ) { th...
org . junit . Assert . assertEquals ( null , parser . parse ( "" ) )
testInsert_3x3_into_3x3 ( ) { org . la4j . matrix . Matrix a = m ( org . la4j . matrix . MatrixTest . a ( 1.0 , 2.0 , 3.0 ) , org . la4j . matrix . MatrixTest . a ( 4.0 , 5.0 , 6.0 ) , org . la4j . matrix . MatrixTest . a ( 7.0 , 8.0 , 9.0 ) ) ; org . la4j . matrix . Matrix b = mz ( 3 , 3 ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( a , b . insert ( a ) )
testConvert ( ) { java . lang . String abbrName = "abbr<sp>name" ; java . lang . String name = "name" ; org . lnu . is . resource . specialty . type . SpecialtyTypeResource expected = new org . lnu . is . resource . specialty . type . SpecialtyTypeResource ( ) ; expected . setAbbrName ( abbrName ) ; expected . setName ...
org . junit . Assert . assertEquals ( expected , actual )
getPatients_shouldGetCloseIdentifiersWithCorrectStartPhrase ( ) { java . lang . String oldPropertyValue = globalPropertiesTestHelper . setGlobalProperty ( OpenmrsConstants . GLOBAL_PROPERTY_PATIENT_IDENTIFIER_SEARCH_MATCH_MODE , OpenmrsConstants . GLOBAL_PROPERTY_PATIENT_SEARCH_MATCH_START ) ; org . openmrs . Patient p...
org . junit . Assert . assertEquals ( 2 , patients . size ( ) )
testOptimizeOperationsUToU ( ) { java . util . Deque < org . onosproject . vpls . api . VplsOperation > operations = new java . util . ArrayDeque ( ) ; org . onosproject . vpls . api . VplsData vplsData = org . onosproject . vpls . api . VplsData . of ( org . onosproject . vpls . VPLS1 ) ; vplsData . addInterfaces ( co...
org . junit . Assert . assertEquals ( org . onosproject . vpls . api . VplsOperation . of ( vplsData , VplsOperation . Operation . UPDATE ) , vplsOperation )
testValues ( ) { org . onosproject . net . resource . DiscreteResource res1 = org . onosproject . net . resource . Resources . discrete ( org . onosproject . net . DeviceId . deviceId ( "a" ) , org . onosproject . net . PortNumber . portNumber ( 1 ) ) . resource ( ) ; org . onosproject . net . resource . DiscreteResour...
org . junit . Assert . assertThat ( sut . values ( ) , org . hamcrest . Matchers . is ( com . google . common . collect . ImmutableSet . of ( res1 , res2 ) ) )
findFunctionsByNameInNamespaceForSubResourceTypeWithFunctionsWithSameNameOnRootTypeShouldReturnOtherFunction ( ) { ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceTypeEntity rootResourceType = createRootResourceType ( OTHER_FUNCTION_A ) ; ch . puzzle . itc . mobiliar . business . resourcegrou...
org . junit . Assert . assertTrue ( functionsWithName . contains ( OTHER_FUNCTION_A ) )
testNegServiceName ( ) { try { com . emc . storageos . systemservices . impl . healthmonitor . ProcStats . getServiceName ( com . emc . storageos . systemservices . impl . healthmonitor . ProcStatsTest . INVALID_PID ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertTrue ( true )
testDefaultInjectEmptyUrlPattern ( javax . servlet . ServletContext , javax . servlet . ServletRegistration . Dynamic ) { new mockit . Expectations ( org . apache . servicecomb . transport . rest . servlet . ServletConfig . class ) { { org . apache . servicecomb . transport . rest . servlet . ServletConfig . getServlet...
org . junit . Assert . assertEquals ( null , org . apache . servicecomb . transport . rest . servlet . RestServletInjector . defaultInject ( servletContext ) )
testGetSecondaryKey ( ) { edu . ucla . sspace . wordsi . DependencyContextExtractor extractor = new edu . ucla . sspace . wordsi . DependencyContextExtractor ( null , null ) ; edu . ucla . sspace . wordsi . DependencyTreeNode node = new edu . ucla . sspace . wordsi . SimpleDependencyTreeNode ( "cat" , "n" , "c" , 0 , n...
org . junit . Assert . assertEquals ( "cat" , extractor . getSecondaryKey ( node , null ) )
test_multi_dim_array2 ( ) { java . lang . Object [ ] [ ] arr = new java . lang . Object [ ] [ ] { new java . lang . Object [ ] { 11 , 22 , 44 } , new java . lang . Object [ ] { 1 , 2 , 34 } } ; java . lang . Object [ ] [ ] arr2 = org . mapdb . elsa . ElsaSerializerBaseTest . clone ( arr ) ; "<AssertPlaceHolder>" ; } cl...
org . junit . Assert . assertArrayEquals ( arr , arr2 )
testMinTime ( ) { final byte [ ] b1 = org . apache . commons . compress . archivers . zip . ZipUtil . toDosTime ( 0 ) ; final byte b10 = b1 [ 0 ] ; ( b1 [ 0 ] ) ++ ; final byte [ ] b2 = org . apache . commons . compress . archivers . zip . ZipUtil . toDosTime ( 0 ) ; "<AssertPlaceHolder>" ; } toDosTime ( java . util . ...
org . junit . Assert . assertEquals ( b10 , b2 [ 0 ] )
setCustomAllocationDefinitionWorks ( tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . SymmetricKeyAttestation ) { tests . unit . com . microsoft . azure . sdk . iot . provisioning . service . configs . CustomAllocationDefinition expectedCustomAllocationDefinition = new tests . uni...
org . junit . Assert . assertEquals ( expectedCustomAllocationDefinition , individualEnrollment . getCustomAllocationDefinition ( ) )
testUpdateNameToExistingNameFails ( ) { org . lilyproject . repository . api . QName name = new org . lilyproject . repository . api . QName ( org . lilyproject . repository . impl . test . AbstractTypeManagerRecordTypeTest . namespace1 , "testUpdateNameToExistingNameFails" ) ; org . lilyproject . repository . api . QN...
org . junit . Assert . assertEquals ( name , recordType . getName ( ) )
itsPossibleToStubReactiveServiceUsingDirectComponent ( ) { com . avanza . astrix . beans . registry . InMemoryServiceRegistry serviceRegistry = new com . avanza . astrix . beans . registry . InMemoryServiceRegistry ( ) ; serviceRegistry . registerProvider ( com . avanza . astrix . beans . service . DirectComponentTest ...
org . junit . Assert . assertEquals ( "foo" , ping . ping ( "foo" ) . get ( ) )
testGetParametersWithDefaultEntityAndDisabledDefaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . salary . type . SalaryType entity = new org . lnu . is . domain . salary . type . SalaryType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected ...
org . junit . Assert . assertEquals ( expected , actual )
test_SingleDirFile ( ) { de . vandermeer . svg2vector . applications . is . Svg2Vector_IS app = new de . vandermeer . svg2vector . applications . is . Svg2Vector_IS ( ) ; java . lang . String [ ] args = org . apache . commons . lang3 . ArrayUtils . addAll ( de . vandermeer . svg2vector . applications . is . Test_Svg2Ve...
org . junit . Assert . assertEquals ( 0 , app . executeApplication ( args ) )
getByArticleTest ( ) { System . out . print ( "-><sp>getByArticle()<sp>-<sp>" ) ; ua . com . alexcoffee . model . product . Product product = ua . com . alexcoffee . service . impl . ProductServiceImplTest . productService . getByArticle ( ua . com . alexcoffee . service . impl . ARTICLE ) ; "<AssertPlaceHolder>" ; Sys...
org . junit . Assert . assertNotNull ( product )
testAniline ( ) { org . openscience . cdk . interfaces . IAtomContainer molecule = org . openscience . cdk . tools . StructureResonanceGeneratorTest . builder . newInstance ( org . openscience . cdk . interfaces . IAtomContainer . class ) ; molecule . addAtom ( org . openscience . cdk . tools . StructureResonanceGenera...
org . junit . Assert . assertEquals ( 5 , setOfMolecules . getAtomContainerCount ( ) )
testList ( ) { java . util . List < org . candlepin . model . SubscriptionsCertificate > certificates = certificateCurator . listAll ( ) . list ( ) ; int beforeCount = certificates . size ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { certificateCurator . create ( createSubCert ( ( "key" + i ) , ( "cert" + i ) ) ) ; } certi...
org . junit . Assert . assertEquals ( 10 , ( afterCount - beforeCount ) )
testQuerySingleRangeExpected ( ) { org . calrissian . accumulorecipes . rangestore . impl . AccumuloRangeStore < java . lang . Long > rangeStore = new org . calrissian . accumulorecipes . rangestore . impl . AccumuloRangeStore < java . lang . Long > ( org . calrissian . accumulorecipes . rangestore . impl . AccumuloRan...
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
testTranslatorORCIDHTTPS ( ) { org . sagebionetworks . repo . model . dbo . principal . DBOPrincipalAlias dbo = new org . sagebionetworks . repo . model . dbo . principal . DBOPrincipalAlias ( ) ; org . sagebionetworks . repo . model . dbo . migration . MigratableTableTranslation < org . sagebionetworks . repo . model ...
org . junit . Assert . assertEquals ( dbo , backup )
testGetInfo ( ) { org . apache . hive . service . cli . SessionHandle sessionHandle = org . apache . hive . service . cli . CLIServiceTest . client . openSession ( "tom" , "password" , java . util . Collections . < java . lang . String , java . lang . String > emptyMap ( ) ) ; "<AssertPlaceHolder>" ; org . apache . hiv...
org . junit . Assert . assertNotNull ( sessionHandle )
testResolvingEmptyListReturnsEmptyList ( ) { com . facebook . buck . core . select . impl . DefaultSelectorListResolver resolver = new com . facebook . buck . core . select . impl . DefaultSelectorListResolver ( new com . facebook . buck . core . select . TestSelectableResolver ( ) ) ; com . facebook . buck . core . mo...
org . junit . Assert . assertTrue ( flavors . isEmpty ( ) )
testReadAll ( ) { System . out . println ( "readAll" ) ; com . pearson . docussandra . domain . objects . Table testTable = com . pearson . docussandra . testhelper . Fixtures . createTestTable ( ) ; com . pearson . docussandra . persistence . impl . TableRepositoryImplTest . f . insertTable ( testTable ) ; java . lang...
org . junit . Assert . assertEquals ( expResult , result )
testNestedTables ( ) { org . apache . crunch . types . PTableType < java . lang . Long , java . lang . Long > pll = org . apache . crunch . types . writable . Writables . tableOf ( org . apache . crunch . types . writable . Writables . longs ( ) , org . apache . crunch . types . writable . Writables . longs ( ) ) ; org...
org . junit . Assert . assertNotNull ( nest )
testFindLessOrEqualNullFromEmptyTree ( ) { org . apache . directory . server . core . avltree . ArrayTree < java . lang . Integer > tree = createTree ( ) ; "<AssertPlaceHolder>" ; } findLessOrEqual ( K ) { if ( ( key != null ) && ( ( comparator . compare ( key , singleton . key ) ) >= 0 ) ) { return singleton ; } retur...
org . junit . Assert . assertNull ( tree . findLessOrEqual ( null ) )
testHistoricDetailActivityInstanceIdForInactiveScopeExecution ( ) { org . camunda . bpm . engine . runtime . ProcessInstance pi = runtimeService . startProcessInstanceByKey ( "testProcess" ) ; runtimeService . setVariable ( pi . getId ( ) , "foo" , "bar" ) ; org . camunda . bpm . engine . history . HistoricDetail histo...
org . junit . Assert . assertNotNull ( historicDetail . getActivityInstanceId ( ) )
testDownControl ( ) { java . util . List < org . biopax . paxtools . pattern . Match > list = org . biopax . paxtools . pattern . Searcher . search ( model . getByID ( "http://pid.nci.nih.gov/biopaxpid_35449" ) , new org . biopax . paxtools . pattern . Pattern ( org . biopax . paxtools . pattern . constraint . Physical...
org . junit . Assert . assertTrue ( ( ( list . size ( ) ) == 1 ) )
given_asConfigured_and_configurationSetToNone_thenNone ( ) { class Customer { @ org . apache . isis . applib . annotation . Action ( publishing = org . apache . isis . applib . annotation . Publishing . AS_CONFIGURED ) public void someAction ( ) { } } allowingPublishingConfigurationToReturn ( "none" ) ; final java . la...
org . junit . Assert . assertNull ( facet )
testGetUTCDayStart ( ) { System . out . println ( "getUTCDayStart" ) ; long dateInput = getUTCDateExpected ( 2012 , 1 , 1 , 0 , 0 , 0 ) ; long expResult = dateInput ; dateInput += 12134 ; java . util . Date EventStartDate = OpenRate . utils . ConversionUtilsTest . instance . getDateFromUTC ( dateInput ) ; long result =...
org . junit . Assert . assertEquals ( expResult , result )
testNoSpan ( ) { javax . servlet . http . HttpServletRequest request = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; org . mockito . Mockito . when ( request . getAttribute ( TracingFilter . SERVER_SPAN_CONTEXT ) ) . thenReturn ( null ) ; io . opentracing . contrib . spring . ...
org . junit . Assert . assertTrue ( interceptor . preHandle ( request , null , null ) )
testSharepointFilterIsEnabled ( ) { com . liferay . portal . util . PropsUtil . set ( com . liferay . portal . sharepoint . SharepointFilter . class . getName ( ) , "true" ) ; com . liferay . portal . sharepoint . SharepointFilter sharepointFilter = new com . liferay . portal . sharepoint . SharepointFilter ( ) ; share...
org . junit . Assert . assertTrue ( sharepointFilter . isFilterEnabled ( ) )
shouldThrow ( ) { final java . lang . Exception e = new com . jeromeloisel . db . conversion . jackson . JacksonConversionException ( "" , new java . io . IOException ( ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( e )
indexOf_A$Object_notExists ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . IndexedSeq . apply ( 1 , 2 , 3 ) ; java . lang . Integer elem = 1000 ; int actual = seq . indexOf ( elem ) ; int expected = - 1 ; "<AssertPlaceHolder>" ; } indexOf ( T ) { return - 1 ; }
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
roundtripOfDateIntervalUntil ( ) { net . time4j . PlainDate end = net . time4j . PlainDate . of ( 2014 , 2 , 27 ) ; java . lang . Object interval = net . time4j . range . DateInterval . until ( end ) ; java . lang . Object ser = net . time4j . range . SerializationTest . roundtrip ( interval ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertThat ( interval , org . hamcrest . CoreMatchers . is ( ser ) )
testSerialization ( ) { org . jfree . chart . needle . PinNeedle n1 = new org . jfree . chart . needle . PinNeedle ( ) ; org . jfree . chart . needle . PinNeedle n2 = ( ( org . jfree . chart . needle . PinNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } equals ( java . ...
org . junit . Assert . assertTrue ( n1 . equals ( n2 ) )
testFromEbXMLEmpty ( ) { org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetRelatedDocumentsQuery result = new org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetRelatedDocumentsQuery ( ) ; transformer . fromEbXML ( result , ebXML ) ; "<AssertPlaceHolder>" ; } fromEbX...
org . junit . Assert . assertEquals ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetRelatedDocumentsQuery ( ) , result )
testSPIShutdownHookRun7 ( ) { _mockRemoteSPI . registrationReference = mockRegistrationReference ( true ) ; java . rmi . server . UnicastRemoteObject . exportObject ( _mockRemoteSPI , 0 ) ; com . liferay . portal . kernel . resiliency . spi . remote . RemoteSPI . SPIShutdownHook spiShutdownHook = _mockRemoteSPI . new c...
org . junit . Assert . assertTrue ( logRecords . toString ( ) , logRecords . isEmpty ( ) )
testLang315 ( ) { final org . apache . commons . lang3 . time . StopWatch watch = new org . apache . commons . lang3 . time . StopWatch ( ) ; watch . start ( ) ; try { java . lang . Thread . sleep ( 200 ) ; } catch ( final java . lang . InterruptedException ex ) { } watch . suspend ( ) ; final long suspendTime = watch ...
org . junit . Assert . assertTrue ( ( suspendTime == totalTime ) )
testAssociationIndicationStatusStaticAccess ( ) { for ( com . digi . xbee . api . models . AssociationIndicationStatus associationIndicationStatus : associationIndicationStatusValues ) "<AssertPlaceHolder>" ; } get ( int ) { return com . digi . xbee . api . models . AssociationIndicationStatus . lookupTable . get ( val...
org . junit . Assert . assertEquals ( associationIndicationStatus , com . digi . xbee . api . models . AssociationIndicationStatus . get ( associationIndicationStatus . getValue ( ) ) )
testExclusion ( ) { owltools . graph . OWLGraphWrapper g = getOntologyWrapper ( ) ; owltools . graph . OWLGraphWrapperEdges . Config cfg = g . getConfig ( ) ; cfg . excludeProperty ( g . getDataFactory ( ) . getOWLObjectProperty ( org . semanticweb . owlapi . model . IRI . create ( "http://example.org#has" ) ) , null )...
org . junit . Assert . assertTrue ( ok )
throwExceptionFromProceedIntoJREMethod ( mockit . AbstractExecutorService , mockit . DelegateInvocationProceedTest$ClassToBeMocked ) { new mockit . Expectations ( ) { { c1 . submit ( ( ( java . lang . Runnable ) ( any ) ) ) ; result = new mockit . Delegate ( ) { @ mockit . Mock void delegate ( mockit . Invocation inv )...
org . junit . Assert . assertEquals ( 123 , c2 . methodToBeMocked ( 1 ) )
empty ( ) { io . fabric8 . maven . docker . config . BuildImageConfiguration config = new io . fabric8 . maven . docker . config . BuildImageConfiguration ( ) ; config . initAndValidate ( logger ) ; "<AssertPlaceHolder>" ; } isDockerFileMode ( ) { return ( dockerFileFile ) != null ; }
org . junit . Assert . assertFalse ( config . isDockerFileMode ( ) )
booleanParamShouldHandleNull ( ) { create ( "booleanParam" ) . invoke ( mockController , context ) ; verify ( mockController ) . booleanParam ( null ) ; "<AssertPlaceHolder>" ; } hasViolations ( ) { return ! ( this . violations . isEmpty ( ) ) ; }
org . junit . Assert . assertFalse ( validation . hasViolations ( ) )
testSetStringintString ( ) { stmt . prepare ( ( ( org . eclipse . birt . report . data . oda . jdbc . StatementTest . SELECT_SQL ) + "<sp>where<sp>col4<sp>=<sp>?" ) ) ; stmt . setString ( 1 , "00" ) ; org . eclipse . birt . report . data . oda . jdbc . ResultSet rs = ( ( org . eclipse . birt . report . data . oda . jdb...
org . junit . Assert . assertTrue ( rs . next ( ) )
testReplaceMatrixParamWithNull ( ) { javax . ws . rs . core . UriBuilder builder = new com . sun . jersey . api . uri . UriBuilderImpl ( ) . matrixParam ( "matrix" , "param1" , "param2" ) ; builder . replaceMatrixParam ( "matrix" , ( ( java . lang . Object [ ] ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } build ( ) { retu...
org . junit . Assert . assertEquals ( builder . build ( ) . toString ( ) , "" )
testAndFails ( ) { buildRule . executeTarget ( "andfails" ) ; "<AssertPlaceHolder>" ; } getProject ( ) { return project ; }
org . junit . Assert . assertNull ( buildRule . getProject ( ) . getProperty ( "andfails" ) )
testIsCompareModeFalse ( ) { result = new ch . puzzle . itc . mobiliar . presentation . generator . ComparedGenerationResult ( originalResult ) ; "<AssertPlaceHolder>" ; } isCompareMode ( ) { return ( compareGlobalFunction ) != null ; }
org . junit . Assert . assertFalse ( result . isCompareMode ( ) )
testSkipEnum ( ) { org . terracotta . runnel . EnumMapping < org . terracotta . runnel . EnumMappingTest . TestEnum1 > enm1 = org . terracotta . runnel . EnumMappingBuilder . newEnumMappingBuilder ( org . terracotta . runnel . EnumMappingTest . TestEnum1 . class ) . mapping ( org . terracotta . runnel . EnumMappingTest...
org . junit . Assert . assertThat ( decoder . < java . lang . Character > enm ( "myEnum2bis" ) . get ( ) , org . hamcrest . CoreMatchers . is ( org . terracotta . runnel . EnumMappingTest . X ) )
testTranslateContextUnsuccessfull ( ) { ichunk . setContext ( ( - 2324 ) ) ; java . lang . String expResult = null ; java . lang . String result = org . goodoldai . jeff . report . rtf . RTFChunkUtility . translateContext ( ichunk ) ; "<AssertPlaceHolder>" ; } translateContext ( org . goodoldai . jeff . explanation . E...
org . junit . Assert . assertEquals ( expResult , result )
testExists_True ( ) { initializeExpectedImage ( 2 ) ; com . google . cloud . compute . deprecated . Compute [ ] expectedOptions = new Compute . ImageOption [ ] { Compute . ImageOption . fields ( ) } ; expect ( compute . getOptions ( ) ) . andReturn ( mockOptions ) ; expect ( compute . getImage ( com . google . cloud . ...
org . junit . Assert . assertTrue ( image . exists ( ) )
testCleanAccesskeyFromRequestString ( ) { final java . lang . String input = "username=foo&accesskey=bar&url=foobar" ; final java . lang . String expected = "username=foo&url=foobar" ; final java . lang . String result = com . cloud . utils . StringUtils . cleanString ( input ) ; "<AssertPlaceHolder>" ; } cleanString (...
org . junit . Assert . assertEquals ( result , expected )
testRedisSlaveRoleCorrect ( ) { result = new java . util . function . Supplier < java . lang . String > ( ) { @ com . ctrip . xpipe . redis . console . healthcheck . actions . redismaster . Override public java . lang . String get ( ) { return com . ctrip . xpipe . redis . console . healthcheck . actions . redismaster ...
org . junit . Assert . assertFalse ( instance . getRedisInstanceInfo ( ) . isMaster ( ) )
test22 ( ) { java . lang . System . out . println ( "validate" ) ; token . setKey ( org . demoiselle . jee . security . jwt . impl . TokenManagerImplMasterTest . localtoken ) ; token . setType ( TokenType . JWT ) ; boolean expResult = true ; boolean result = instance . validate ( ) ; "<AssertPlaceHolder>" ; } validate ...
org . junit . Assert . assertEquals ( expResult , result )
testResolvePackageWithPOMFile ( ) { final javax . enterprise . inject . spi . Bean moduleServiceBean = ( ( javax . enterprise . inject . spi . Bean ) ( beanManager . getBeans ( org . kie . workbench . common . services . shared . project . KieModuleService . class ) . iterator ( ) . next ( ) ) ) ; final javax . enterpr...
org . junit . Assert . assertNull ( result )
magVerwerktWordenMetNegatiefResultaat ( ) { final java . util . List < java . lang . Integer > persoonIds = java . util . Arrays . asList ( 1 , 2 , 3 , 4 ) ; final nl . bzk . brp . model . operationeel . kern . AdministratieveHandelingModel administratieveHandeling = new nl . bzk . brp . model . operationeel . kern . A...
org . junit . Assert . assertFalse ( magHet )
testRemove ( ) { com . liferay . portal . kernel . model . Release newRelease = addRelease ( ) ; _persistence . remove ( newRelease ) ; com . liferay . portal . kernel . model . Release existingRelease = _persistence . fetchByPrimaryKey ( newRelease . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { ...
org . junit . Assert . assertNull ( existingRelease )
testCSWServersCount ( ) { org . geosdi . geoplatform . request . SearchRequest request = new org . geosdi . geoplatform . request . SearchRequest ( "test" ) ; int count = cswService . getCSWServersCount ( request , super . organizationNameTest ) ; "<AssertPlaceHolder>" ; } getCSWServersCount ( org . geosdi . geoplatfor...
org . junit . Assert . assertEquals ( 1 , count )
shouldWriteAndReadBytes ( ) { for ( int i = 0 ; i < 100 ; i ++ ) { java . lang . String str = "bazinga<sp>#" + i ; com . ociweb . pronghorn . iot . rs232 . RS232ClientTest . client1 . write ( str . getBytes ( "UTF-8" ) ) ; java . lang . Thread . sleep ( 10 ) ; java . lang . String read = new java . lang . String ( com ...
org . junit . Assert . assertTrue ( read . contains ( str ) )
testGetLabelsDisplayedOK ( ) { axes1 . setLabelsDisplayed ( PlottingStyle . Y ) ; "<AssertPlaceHolder>" ; } getLabelsDisplayed ( ) { return labelsDisplayed . getValue ( ) ; }
org . junit . Assert . assertEquals ( PlottingStyle . Y , group . getLabelsDisplayed ( ) )
testWriteOneOutbound ( ) { final java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 1 ) ; final java . util . concurrent . atomic . AtomicInteger flushCount = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; io . netty . channel . embedded . EmbeddedChannel ch...
org . junit . Assert . assertEquals ( 0 , flushCount . get ( ) )
testAddAllCollectionOfQextendsIN ( ) { final java . util . List < java . lang . Integer > c = new java . util . ArrayList < java . lang . Integer > ( ) ; c . add ( 0 ) ; c . add ( 1 ) ; c . add ( 2 ) ; subject . addAll ( c ) ; "<AssertPlaceHolder>" ; } getOutput ( ) { return output ; }
org . junit . Assert . assertEquals ( "2" , subject . getOutput ( ) . get ( 2 ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . portal . kernel . model . ServiceComponent > serviceComponents = _persistence . fetchByPr...
org . junit . Assert . assertTrue ( serviceComponents . isEmpty ( ) )
testMultipleSet04 ( ) { cmsdbContext . setAllowFullTableScan ( true ) ; try { java . lang . String query = "DNSRecord.((fqdn{*}<sp>&&<sp>cname{*})<sp>||<sp>fqdn{*}<sp>&&<sp>networkAddress{*})" ; com . ebay . cloud . cms . query . service . IQueryResult result = queryService . query ( query , cmsdbContext ) ; "<AssertPl...
org . junit . Assert . assertEquals ( 4 , result . getEntities ( ) . size ( ) )
testRealAjaxRequest ( ) { final org . pac4j . core . context . MockWebContext context = org . pac4j . core . context . MockWebContext . create ( ) . addRequestHeader ( "X-Requested-With" , "XMLHttpRequest" ) ; "<AssertPlaceHolder>" ; } isAjax ( org . pac4j . core . context . WebContext ) { final boolean xmlHttpRequest ...
org . junit . Assert . assertTrue ( resolver . isAjax ( context ) )
copyBRForExcludeNull ( ) { org . slim3 . util . BeanUtilTest . SrcBR src = new org . slim3 . util . BeanUtilTest . SrcBR ( ) ; org . slim3 . tester . MockServletContext servletContext = new org . slim3 . tester . MockServletContext ( ) ; org . slim3 . tester . MockHttpServletRequest dest = new org . slim3 . tester . Mo...
org . junit . Assert . assertThat ( ( ( java . lang . String ) ( dest . getAttribute ( "aaa" ) ) ) , org . hamcrest . CoreMatchers . is ( "111" ) )
testOpening ( ) { ij . process . ImageProcessor image = createImage_Square10x10 ( ) ; inra . ijpb . morphology . Strel strel = new inra . ijpb . morphology . strel . LinearHorizontalStrel ( 5 ) ; ij . process . ImageProcessor result = strel . opening ( image ) ; for ( int y = 0 ; y < ( image . getHeight ( ) ) ; y ++ ) ...
org . junit . Assert . assertEquals ( image . get ( x , y ) , result . get ( x , y ) )
testAsyncProxyPrimitiveResponse ( ) { java . lang . String address = "http://localhost:" + ( org . apache . cxf . systest . jaxrs . JAXRSAsyncClientTest . PORT ) ; final javax . xml . ws . Holder < java . lang . Boolean > holder = new javax . xml . ws . Holder ( ) ; final javax . ws . rs . client . InvocationCallback <...
org . junit . Assert . assertTrue ( holder . value )