input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
single_tag_predicate_does_not_match_pickle_with_no_tags ( ) { gherkin . events . PickleEvent pickleEvent = createPickleWithTags ( java . util . Collections . < gherkin . pickles . PickleTag > emptyList ( ) ) ; cucumber . runtime . filter . TagPredicate predicate = new cucumber . runtime . filter . TagPredicate ( asList...
org . junit . Assert . assertFalse ( predicate . apply ( pickleEvent ) )
testGetServicesByCriteria_Sorting_NameDescPaged ( ) { container . login ( org . oscm . serviceprovisioningservice . bean . SearchServiceBeanListIT . customerUserKey , org . oscm . serviceprovisioningservice . bean . ROLE_ORGANIZATION_ADMIN ) ; org . oscm . serviceprovisioningservice . bean . List < java . lang . Long >...
org . junit . Assert . assertEquals ( expected . get ( offset ) , serviceKey )
testPyridineOxide_SP2 ( ) { org . openscience . cdk . interfaces . IAtomContainer molecule = org . openscience . cdk . templates . TestMoleculeFactory . makePyridineOxide ( ) ; java . util . Iterator < org . openscience . cdk . interfaces . IBond > bonds = molecule . bonds ( ) . iterator ( ) ; while ( bonds . hasNext (...
org . junit . Assert . assertTrue ( org . openscience . cdk . aromaticity . DoubleBondAcceptingAromaticityDetector . detectAromaticity ( molecule ) )
testGetCassandraWithKeyspace ( ) { hThriftClient . open ( ) ; hThriftClient . getCassandra ( "Keyspace1" ) ; "<AssertPlaceHolder>" ; } isOpen ( ) { return true ; }
org . junit . Assert . assertTrue ( hThriftClient . isOpen ( ) )
testHashCode_GradientWithMoreColors ( ) { java . lang . String [ ] gradientColors1 = new java . lang . String [ ] { "#FFFFFF" , "#00AA00" , "#00AA00" , "#00AA00" , "#FFFFFF" } ; float [ ] gradientPercents1 = new float [ ] { 0.0F , 48.0F , 52.0F , 56.0F , 100.0F } ; java . lang . String [ ] gradientColors2 = new java . ...
org . junit . Assert . assertFalse ( ( ( gradient1 . hashCode ( ) ) == ( gradient2 . hashCode ( ) ) ) )
testCombineOrOverride_firstIsNonAdditive_secondIsReturned ( ) { org . subtlelib . poi . api . style . Style result = org . subtlelib . poi . impl . style . StylesInternal . combineOrOverride ( nonAdditive , additive ) ; "<AssertPlaceHolder>" ; } combineOrOverride ( org . subtlelib . poi . api . style . Style , org . su...
org . junit . Assert . assertEquals ( additive , result )
trimTest ( ) { java . lang . String blank = "<sp><sp>" ; java . lang . String trim = cn . hutool . core . util . StrUtil . trim ( blank ) ; "<AssertPlaceHolder>" ; } trim ( java . lang . CharSequence ) { return null == str ? null : cn . hutool . core . util . StrUtil . trim ( str , 0 ) ; }
org . junit . Assert . assertEquals ( "" , trim )
basic ( ) { org . identityconnectors . framework . common . objects . Uid created = newFacade ( ) . create ( ObjectClass . ACCOUNT , java . util . Collections . < org . identityconnectors . framework . common . objects . Attribute > emptySet ( ) , new org . identityconnectors . framework . common . objects . OperationO...
org . junit . Assert . assertNotNull ( created )
should_find_by_like_non_string ( ) { testData . createSimple ( "testFindAll1" , 1 ) ; testData . createSimple ( "testFindAll2" , 2 ) ; org . apache . deltaspike . data . test . domain . Simple example = new org . apache . deltaspike . data . test . domain . Simple ( "test" ) ; example . setCounter ( 1 ) ; java . util ....
org . junit . Assert . assertEquals ( 1 , find . size ( ) )
portCached ( ) { org . purl . wf4ever . astrotaverna . vorepo . VORepository voRepository = new org . purl . wf4ever . astrotaverna . vorepo . VORepository ( ) ; org . purl . wf4ever . astrotaverna . wsdl . registrysearch . RegistrySearchPortType port = voRepository . getPort ( ) ; "<AssertPlaceHolder>" ; } getPort ( )...
org . junit . Assert . assertSame ( port , voRepository . getPort ( ) )
testExceptionCatch ( ) { context . checking ( new org . jmock . Expectations ( ) { { oneOf ( securityContext ) . getAuthentication ( ) ; will ( throwException ( new java . lang . Exception ( ) ) ) ; } } ) ; "<AssertPlaceHolder>" ; } runTest ( boolean ) { org . springframework . security . context . SecurityContext orig...
org . junit . Assert . assertNull ( runTest ( false ) )
testScheidingstekenLeeg ( ) { final nl . moderniseringgba . migratie . conversie . model . brp . BrpGroepInhoud inhoud = maakInhoud ( null , "niet<sp>overnemen" ) ; final nl . moderniseringgba . migratie . conversie . model . lo3 . categorie . Lo3PersoonInhoud lo3Inhoud = converteer ( inhoud ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertNull ( lo3Inhoud . getVoorvoegselGeslachtsnaam ( ) )
test ( ) { org . apache . blur . lucene . security . analysis . DocumentVisibilityTokenStream stream = new org . apache . blur . lucene . security . analysis . DocumentVisibilityTokenStream ( new org . apache . blur . lucene . security . DocumentVisibility ( "hi|(hi&cool&(c&(b|f)))|nice" ) ) ; org . apache . lucene . a...
org . junit . Assert . assertEquals ( expectedTerms , terms )
testIsNotUniqueWhenNameIsNotUnique ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = makeDataType ( "uuid1" , "tCity" ) ; doReturn ( asList ( makeDataType ( "uuid2" , "tPerson" ) , makeDataType ( "uuid3" , "tCity" ) ) ) . when ( validator ) . siblings ( dataType ...
org . junit . Assert . assertTrue ( validator . isNotUnique ( dataType ) )
test_param_string_positional_eligible_3 ( ) { java . lang . String cmdText = "SELECT<sp>*<sp>WHERE<sp>{<sp>?s<sp>?p<sp>?;<sp>?p1<sp>?,<sp>?.<sp>}" ; org . apache . jena . query . ParameterizedSparqlString pss = new org . apache . jena . query . ParameterizedSparqlString ( cmdText ) ; java . util . Iterator < java . lan...
org . junit . Assert . assertEquals ( 3 , count )
testSimpleUTF8ECI ( ) { java . util . Map < com . google . zxing . EncodeHintType , java . lang . Object > hints = new java . util . EnumMap ( com . google . zxing . EncodeHintType . class ) ; hints . put ( EncodeHintType . CHARACTER_SET , "UTF8" ) ; com . google . zxing . qrcode . encoder . QRCode qrCode = com . googl...
org . junit . Assert . assertEquals ( expected , qrCode . toString ( ) )
test_encrypt_decrypt ( ) { java . lang . System . getProperties ( ) . put ( ConfigKey . ENCRYPTION_KEY . getValue ( ) , ch . puzzle . itc . mobiliar . business . generator . control . TemplateUtilsTest . ENCRYPTION_KEY ) ; for ( java . lang . String str : encryptStrings ) { java . lang . String encrypted = ch . puzzle ...
org . junit . Assert . assertEquals ( str , decrypted )
test ( ) { com . arjuna . ats . internal . jts . orbspecific . ControlImple cont = new com . arjuna . ats . internal . jts . orbspecific . ControlImple ( null , null ) ; org . omg . CosTransactions . Control theControl = cont . getControl ( ) ; com . arjuna . ats . internal . jts . orbspecific . coordinator . ArjunaTra...
org . junit . Assert . assertTrue ( ( ( act . theResource ( ) ) != null ) )
testSubtrai ( ) { java . math . BigDecimal valor1 = new java . math . BigDecimal ( "271.489" ) ; java . math . BigDecimal valor2 = new java . math . BigDecimal ( "7.33" ) ; java . math . BigDecimal expResult = new java . math . BigDecimal ( "264.15" ) ; java . math . BigDecimal result = com . chronos . calc . util . Bi...
org . junit . Assert . assertEquals ( expResult , result )
sortTableByReportParameter ( ) { java . io . InputStream inputStream = null ; parameters . put ( "customer" , 103 ) ; parameters . put ( "order" , 10123 ) ; if ( ( inputStream = runAndRenderSampleReport ( "samplereports/Reporting<sp>Feature<sp>Examples/Sorting/SortTableByReportParameter.rptdesign" , "xlsx" ) ) != null ...
org . junit . Assert . assertNotNull ( inputStream )
testGeslachtsnaamstamWoonplaatsnaamGeslachtsaanduidingCodeActueelVanafKlein ( ) { final java . util . Set < nl . bzk . brp . domain . algemeen . ZoekCriterium > zoekCriteria = new java . util . HashSet ( ) ; nl . bzk . brp . domain . algemeen . ZoekCriterium zoekCriteria1 = new nl . bzk . brp . domain . algemeen . Zoek...
org . junit . Assert . assertEquals ( 1 , ids . size ( ) )
testSetAutocompleteUrl ( ) { com . github . bordertech . wcomponents . WSingleSelect field = new com . github . bordertech . wcomponents . WSingleSelect ( ) ; java . lang . String expected ; for ( com . github . bordertech . wcomponents . autocomplete . type . Url url : com . github . bordertech . wcomponents . autocom...
org . junit . Assert . assertEquals ( expected , field . getAutocomplete ( ) )
testGetMethod ( ) { "<AssertPlaceHolder>" ; } getMethod ( ) { return method ; }
org . junit . Assert . assertEquals ( method , route . getMethod ( ) )
testSymbolicName ( ) { com . ibm . ws . repository . resources . writeable . EsaResourceWritable esa = com . ibm . ws . repository . resources . writeable . WritableResourceFactory . createEsa ( null ) ; esa . setProvideFeature ( "com.example.featureA" ) ; com . ibm . ws . repository . resolver . internal . kernel . Ke...
org . junit . Assert . assertThat ( resolverEsa . getSymbolicName ( ) , org . hamcrest . Matchers . is ( "com.example.featureA" ) )
testMap ( ) { java . io . File tempFile = java . io . File . createTempFile ( "xmltest" , ".xml" ) ; org . ujmp . core . mapmatrix . MapMatrix < java . lang . Object , java . lang . Object > m1 = new org . ujmp . core . mapmatrix . DefaultMapMatrix < java . lang . Object , java . lang . Object > ( ) ; m1 . put ( "test1...
org . junit . Assert . assertEquals ( m1 , m2 )
memoizationTest ( ) { net . sourceforge . pmd . lang . java . ast . ASTCompilationUnit acu = net . sourceforge . pmd . lang . java . ParserTstUtil . parseJavaDefaultVersion ( net . sourceforge . pmd . lang . java . metrics . testdata . MetricsVisitorTestData . class ) ; java . util . List < java . lang . Integer > expe...
org . junit . Assert . assertEquals ( expected , real )
sexEqualAndAgeGreaterthanequalOrSexEqual_sortAgeDesc ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>WHERE<sp>sex<sp>=<sp>'male'<sp>and<sp>age<sp>>=<sp>35<sp>or<sp>sex<sp>=<sp>'female'<sp>" + "ORDER<sp>BY<sp>age<sp>desc<sp>LIMIT<sp>10" ; java . lang . String api = "select<sp>*<sp>where<sp>sex<sp>=<...
org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) )
test_success_2_paramater_mapping_with_name_not_correlating ( ) { java . util . List < org . ikasan . spec . mapping . QueryParameter > sourceSystemValues = new java . util . ArrayList < org . ikasan . spec . mapping . QueryParameter > ( ) ; org . ikasan . mapping . dao . QueryParameterImpl param1 = new org . ikasan . m...
org . junit . Assert . assertNull ( result )
testComputeIdealStateIfClusterUnchanged ( ) { org . apache . bookkeeper . stream . proto . cluster . ClusterAssignmentData emptyAssignment = org . apache . bookkeeper . stream . proto . cluster . ClusterAssignmentData . newBuilder ( ) . build ( ) ; int numServers = 8 ; java . util . Set < org . apache . bookkeeper . ne...
org . junit . Assert . assertSame ( newAssignment , newAssignment2 )
testSetsTheCorrectClassLoderIfUsingWithClassLoaderFollowedByWithModifier ( ) { com . fasterxml . jackson . databind . type . TypeFactory sut = mapper . getTypeFactory ( ) . withClassLoader ( com . fasterxml . jackson . databind . type . TestTypeFactoryWithClassLoader . classLoader ) . withModifier ( typeModifier ) ; "<...
org . junit . Assert . assertNotNull ( sut . getClassLoader ( ) )
test ( ) { fr . norad . visuwall . plugin . teamcity . TeamCityConnection connection = new fr . norad . visuwall . plugin . teamcity . TeamCityConnection ( ) ; connection . connect ( "http://localhost:8111" , "guest" , "" ) ; fr . norad . visuwall . api . domain . SoftwareProjectId softwareProjectId = new fr . norad . ...
org . junit . Assert . assertNotNull ( estimatedFinishTime )
convertLineString_NoRedundantSpaces_ShouldConvert ( ) { java . lang . String wkt = "LINESTRING<sp>(30<sp>10,<sp>10<sp>30,<sp>40<sp>40)" ; java . lang . String geoJson = org . nlpcn . es4sql . spatial . WktToGeoJsonConverter . toGeoJson ( wkt ) ; java . lang . String expectedGeoJson = "{\"type\":\"LineString\",<sp>\"coo...
org . junit . Assert . assertEquals ( expectedGeoJson , geoJson )
testAnummerWijzigingBijhoudingIsAlOverig ( ) { isAnummerWijziging = true ; final nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonNummerverwijzingHistorie historie = new nl . bzk . algemeenbrp . dal . domein . brp . entity . PersoonNummerverwijzingHistorie ( nieuwePersoon ) ; historie . setVorigeAdministra...
org . junit . Assert . assertEquals ( 2 , nieuweAdministratieveHandelingen . size ( ) )
exifOrientation4 ( ) { javax . imageio . ImageReader reader = javax . imageio . ImageIO . getImageReadersByFormatName ( "jpg" ) . next ( ) ; reader . setInput ( javax . imageio . ImageIO . createImageInputStream ( new java . io . File ( "test-resources/Exif/orientation_4.jpg" ) ) ) ; net . coobird . thumbnailator . uti...
org . junit . Assert . assertEquals ( net . coobird . thumbnailator . util . exif . Orientation . typeOf ( 4 ) , orientation )
testModular4 ( ) { cc . redberry . rings . poly . MultivariateRing < cc . redberry . rings . poly . multivar . MultivariatePolynomial < cc . redberry . rings . bigint . BigInteger > > ring = MultivariateRing ( 4 , cc . redberry . rings . poly . multivar . Z , cc . redberry . rings . poly . multivar . MonomialOrder . LE...
org . junit . Assert . assertEquals ( sin , mod )
testDeleteGlobalAddress_Operation ( ) { org . easymock . EasyMock . expect ( computeRpcMock . deleteGlobalAddress ( com . google . cloud . compute . deprecated . ComputeImplTest . GLOBAL_ADDRESS_ID . getAddress ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . EMPTY_RPC_OPTIONS ) ) . andReturn ( glo...
org . junit . Assert . assertEquals ( globalOperation , compute . deleteAddress ( com . google . cloud . compute . deprecated . ComputeImplTest . GLOBAL_ADDRESS_ID ) )
testNull ( ) { agg . aggregate ( null ) ; "<AssertPlaceHolder>" ; } getState ( ) { return org . apache . kylin . job . execution . ExecutableState . SUCCEED ; }
org . junit . Assert . assertEquals ( agg . getState ( ) , null )
testCurrentDate_1 ( ) { es . ieci . tecdoc . fwktd . time . TimeService timeService = fwktd_time_factoryTimeService . getTimeService ( ) ; try { java . util . Date date = timeService . getCurrentDate ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "Fecha<sp>actual:<sp>" + date ) ) ; java . text . SimpleDateFor...
org . junit . Assert . assertNotNull ( date )
defaultToRemoteProxy ( ) { org . openqa . grid . common . RegistrationRequest req = org . openqa . grid . common . RegistrationRequest . localWebdriverNoCapabilities ( ) ; java . util . Map < java . lang . String , java . lang . Object > app1 = new java . util . HashMap < java . lang . String , java . lang . Object > (...
org . junit . Assert . assertEquals ( org . openqa . grid . internal . BaseRemoteProxy . class , p . getClass ( ) )
testProbability ( ) { double [ ] points = new double [ ] { - 2.0 , - 1.0 , 0.0 , 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 } ; double [ ] results = new double [ ] { 0 , 0.2 , 0 , 0 , 0 , 0.5 , 0 , 0 , 0 , 0.3 , 0 } ; for ( int p = 0 ; p < ( points . length ) ; p ++ ) { double density = testDistribution . probabilit...
org . junit . Assert . assertEquals ( results [ p ] , density , 0.0 )
shouldReturnTrueWhenViewHasPostTransformEntityFilters ( ) { final uk . gov . gchq . gaffer . data . elementdefinition . view . View view = new uk . gov . gchq . gaffer . data . elementdefinition . view . View . Builder ( ) . entity ( TestGroups . ENTITY , new uk . gov . gchq . gaffer . data . elementdefinition . view ....
org . junit . Assert . assertTrue ( result )
isConnected_hasInstanceName ( ) { final org . apache . rya . shell . SharedShellState sharedState = new org . apache . rya . shell . SharedShellState ( ) ; final org . apache . rya . api . client . accumulo . AccumuloConnectionDetails connectionDetails = new org . apache . rya . api . client . accumulo . AccumuloConnec...
org . junit . Assert . assertEquals ( expected , prompt )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . friendly . url . model . FriendlyURLEntryMapping . class , _dynamicQueryClassLoader ) ; dynamicQuery . ad...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
shouldEnrichTestMethod ( ) { org . arquillian . cube . impl . client . enricher . HostIpTestEnricher hostIpTestEnricher = new org . arquillian . cube . impl . client . enricher . HostIpTestEnricher ( ) ; hostIpTestEnricher . hostUriContext = new org . jboss . arquillian . core . api . Instance < org . arquillian . cube...
org . junit . Assert . assertThat ( ( ( java . lang . String ) ( myMethods [ 1 ] ) ) , org . hamcrest . core . Is . is ( "192.168.99.100" ) )
testRemoveWithIteratorInComplexPattern ( ) { for ( org . sweble . wom3 . impl . SiblingRangeCollectionTest . ChildNode e : nodes ) c . add ( e ) ; java . util . ListIterator < org . sweble . wom3 . impl . SiblingRangeCollectionTest . ChildNode > i = c . listIterator ( ) ; while ( i . hasNext ( ) ) { i . next ( ) ; i . ...
org . junit . Assert . assertEquals ( ( ( nodes . size ( ) ) / 2 ) , c . size ( ) )
skip_directory ( ) { java . io . File root = add ( "root" , "/" , "a/b.txt" ) ; invoke ( "delete" , "a" ) ; "<AssertPlaceHolder>" ; } exists ( java . lang . String ) { return new org . hamcrest . BaseMatcher < java . io . File > ( ) { @ com . asakusafw . operation . tools . directio . Override public boolean matches ( ...
org . junit . Assert . assertThat ( root , exists ( "a/b.txt" ) )
testConvertA ( ) { org . apache . hadoop . mapreduce . lib . db . TextSplitter splitter = new org . apache . hadoop . mapreduce . lib . db . TextSplitter ( ) ; java . lang . String out = splitter . bigDecimalToString ( splitter . stringToBigDecimal ( "A" ) ) ; "<AssertPlaceHolder>" ; } stringToBigDecimal ( java . lang ...
org . junit . Assert . assertEquals ( "A" , out )
testSerializationDeserializationOfCatalogs ( ) { org . opencastproject . metadata . dublincore . DublinCoreCatalog impl = org . opencastproject . metadata . dublincore . DublinCores . mkOpencastEpisode ( ) . getCatalog ( ) ; impl . addTag ( "bob" ) ; impl . set ( impl . PROPERTY_PUBLISHER , "test" ) ; org . opencastpro...
org . junit . Assert . assertEquals ( impl , newImpl )
collectIfOver100 ( ) { java . util . ArrayList < java . lang . Integer > list = new java . util . ArrayList ( com . gs . collections . impl . list . Interval . oneTo ( 101 ) ) ; java . util . ArrayList < java . lang . Class < ? > > result = com . gs . collections . impl . utility . ArrayListIterate . collectIf ( list ,...
org . junit . Assert . assertEquals ( com . gs . collections . impl . list . mutable . FastList . newListWith ( com . gs . collections . impl . utility . Integer . class ) , result )
into ( ) { int sum = org . eclipse . collections . impl . list . Interval . oneTo ( 5 ) . select ( org . eclipse . collections . impl . block . factory . Predicates . lessThan ( 5 ) ) . into ( org . eclipse . collections . impl . list . mutable . FastList . newList ( ) ) . injectInto ( 0 , AddFunction . INTEGER_TO_INT ...
org . junit . Assert . assertEquals ( 10 , sum )
shouldCompleteAGameWithADouble ( ) { for ( int i = 0 ; i < 3 ; i ++ ) { d . dart ( 20 , Multiplier . TRIPLE ) ; } d . dart ( 17 , Multiplier . TRIPLE ) ; d . dart ( 20 , Multiplier . TRIPLE ) ; d . dart ( 5 , Multiplier . DOUBLE ) ; "<AssertPlaceHolder>" ; } isFinished ( ) { return isFinished ; }
org . junit . Assert . assertTrue ( d . isFinished ( ) )
testDecryption ( ) { com . networknt . basicauth . BasicAuthConfigTest . logger . debug ( ( "password<sp>for<sp>user2<sp>=<sp>" + ( com . networknt . basicauth . BasicAuthConfigTest . config . getUsers ( ) . get ( 1 ) . get ( "password" ) ) ) ) ; "<AssertPlaceHolder>" ; } getUsers ( ) { return users ; }
org . junit . Assert . assertEquals ( "password" , com . networknt . basicauth . BasicAuthConfigTest . config . getUsers ( ) . get ( 1 ) . get ( "password" ) )
testSmartDataThreshold3 ( ) { com . vmware . vrack . hms . boardservice . ib . api . HddInfoHelperTest . logger . info ( "Testing<sp>hms-inband<sp>HddInfoHelperTest::isSmartDataBeyondThreshold3" ) ; try { com . vmware . vrack . hms . common . servernodes . api . hdd . HddSMARTData hddSMARTData = new com . vmware . vrac...
org . junit . Assert . assertFalse ( isDataConcerning )
testLockUserAccount ( ) { org . oscm . internal . vo . VOUserDetails user = createUserAndReRetrieveIt ( ) ; idMgmt . lockUserAccount ( user , UserAccountStatus . LOCKED , null ) ; user = retrieveUser ( user ) ; "<AssertPlaceHolder>" ; } getStatus ( ) { return status ; }
org . junit . Assert . assertEquals ( UserAccountStatus . LOCKED , user . getStatus ( ) )
testGetInetAddressDelegatesToSocket ( ) { java . net . InetAddress ia = mock ( java . net . InetAddress . class ) ; when ( mockS . getInetAddress ( ) ) . thenReturn ( ia ) ; java . net . InetAddress result = ws . getInetAddress ( ) ; "<AssertPlaceHolder>" ; verify ( mockS ) . getInetAddress ( ) ; verifyZeroInteractions...
org . junit . Assert . assertEquals ( ia , result )
testToAndFromJsonStringColumnConditionValue ( ) { de . metanome . algorithm_integration . results . ColumnIdentifier columnIdentifier = new de . metanome . algorithm_integration . results . ColumnIdentifier ( "table1" , "column1" ) ; de . metanome . algorithm_integration . results . ColumnConditionValue expectedColumnV...
org . junit . Assert . assertEquals ( expectedColumnValue , actualColumnValue )
testSetsUserTimingLabel ( ) { com . eclipsesource . tabris . tracking . internal . analytics . model . hit . TimingHit eventHit = new com . eclipsesource . tabris . tracking . internal . analytics . model . hit . TimingHit ( ) . setUserTimingLabel ( "foo" ) ; java . lang . String userTimingLabel = ( ( java . lang . Str...
org . junit . Assert . assertEquals ( "foo" , userTimingLabel )
test3555275 ( ) { org . jfree . data . category . DefaultCategoryDataset dataset = new org . jfree . data . category . DefaultCategoryDataset ( ) ; org . jfree . chart . JFreeChart chart = org . jfree . chart . ChartFactory . createLineChart ( "Title" , "X" , "Y" , dataset , PlotOrientation . VERTICAL , true , false , ...
org . junit . Assert . assertEquals ( 100.0 , x , 1.0 )
testGetForLists ( ) { java . util . List < java . lang . Boolean > ls = new java . util . ArrayList < java . lang . Boolean > ( ) ; ls . add ( true ) ; ls . add ( false ) ; table . createListColumn ( "simpson" , org . cytoscape . model . Boolean . class , false ) ; attrs . set ( "simpson" , ls ) ; java . util . List re...
org . junit . Assert . assertEquals ( ls , res )
getCallOriginReturnsFirstClassNameOtherThanThrowable ( ) { expectGetStackTraceToReturn ( stackTraceElement ( uk . org . lidalia . sysoutslf4j . system . PerContextPrintStream . class ) , stackTraceElement ( "some.other.ClassName" ) , stackTraceElement ( java . lang . Throwable . class , "printStackTrace" ) , stackTrace...
org . junit . Assert . assertEquals ( "org.a.ClassName" , callOrigin . getClassName ( ) )
AssertionSamlAuthzDecisionStatementEvidenceAssertionInstanceAccessConsentFromAssertionToXacml ( ) { gov . hhs . fha . nhinc . common . nhinccommon . AssertionType assertion = createTestAssertion ( ) ; java . lang . String sourceValue = assertion . getSamlAuthzDecisionStatement ( ) . getEvidence ( ) . getAssertion ( ) ....
org . junit . Assert . assertFalse ( sourceValue . isEmpty ( ) )
testNoTxGraphConstraints ( ) { com . tinkerpop . blueprints . impls . orient . OrientGraphNoTx graphNoTx = new com . tinkerpop . blueprints . impls . orient . OrientGraphNoTx ( com . orientechnologies . orient . graph . blueprints . GraphValidationTest . URL ) ; com . tinkerpop . blueprints . impls . orient . OrientVer...
org . junit . Assert . assertEquals ( ( ( int ) ( vert1 . getProperty ( "age" ) ) ) , 2 )
getDelayValue_A$Calendar$TimeUnit_minute ( ) { com . github . seratch . taskun . scheduler . impl . TaskunImpl target = new com . github . seratch . taskun . scheduler . impl . TaskunImpl ( ) ; java . util . Calendar arg0 = com . github . seratch . taskun . util . CalendarUtil . getCurrentTime ( ) ; arg0 = com . github...
org . junit . Assert . assertEquals ( expected , actual )
testInitWithMissingConfFiles ( ) { java . util . List < com . streamsets . pipeline . api . Stage . ConfigIssue > issues = config . init ( context , "prefix" ) ; "<AssertPlaceHolder>" ; verify ( context ) . createConfigIssue ( anyString ( ) , anyString ( ) , eq ( MapReduceErrors . MAPREDUCE_0002 ) , contains ( "core-si...
org . junit . Assert . assertEquals ( 4 , issues . size ( ) )
testQueryHistoricProcessWithParallelGateway ( ) { org . camunda . bpm . engine . history . HistoricProcessInstance historicProcessInstance = rule . historicProcessInstance ( ) ; org . camunda . bpm . engine . history . HistoricTaskInstanceQuery historicTaskQuery = rule . getHistoryService ( ) . createHistoricTaskInstan...
org . junit . Assert . assertEquals ( 2 , historicTaskQuery . count ( ) )
testNextWithoutHasNext ( ) { java . sql . ResultSet resultSet = twoLinesResultSetFixture . getTestData ( ) ; de . metanome . backend . input . database . ResultSetIterator resultSetIterator = new de . metanome . backend . input . database . ResultSetIterator ( resultSet ) ; java . util . List < com . google . common . ...
org . junit . Assert . assertEquals ( expectedRecords . get ( i ) , resultSetIterator . next ( ) )
testEquals_andNodesWithEq ( ) { org . calrissian . mango . criteria . domain . Node node = org . calrissian . mango . criteria . builder . QueryBuilder . create ( ) . and ( ) . and ( ) . eq ( "key1" , "val1" ) . end ( ) . eq ( "key2" , "val2" ) . end ( ) . build ( ) ; org . calrissian . mango . criteria . domain . Node...
org . junit . Assert . assertTrue ( criteria . equals ( criteria2 ) )
getMethodNameNormal ( ) { java . lang . String mn = "methodName" ; java . lang . String min = "methodInterfaceName" ; java . util . List < java . lang . String > pl = null ; com . ibm . ws . security . authorization . jacc . MethodInfo mi = new com . ibm . ws . security . authorization . jacc . MethodInfo ( mn , min , ...
org . junit . Assert . assertEquals ( mn , mi . getMethodName ( ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( pushNotificationsDevices . isEmpty ( ) )
testCreateEmptySession ( ) { com . orbitz . consul . model . session . SessionCreatedResponse session = sessionClient . createSession ( com . orbitz . consul . model . session . ImmutableSession . builder ( ) . build ( ) ) ; "<AssertPlaceHolder>" ; sessionClient . destroySession ( session . getId ( ) ) ; } build ( ) { ...
org . junit . Assert . assertNotNull ( session )
testGetAllUnsafe ( ) { getHive ( ) . directory ( ) . insertPrimaryIndexKey ( intKey ( ) ) ; org . hivedb . Hive hive = org . hivedb . Hive . load ( getConnectString ( getHiveDatabaseName ( ) ) , org . hivedb . meta . persistence . CachingDataSourceProvider . getInstance ( ) ) ; org . hivedb . JdbcDaoSupportCacheImpl ca...
org . junit . Assert . assertEquals ( 3 , cache . getAllUnsafe ( ) . size ( ) )
equalsInputNotNullOutputFalse5 ( ) { final com . freedomotic . environment . GraphEdge objectUnderTest = new com . freedomotic . environment . GraphEdge ( 0 , ( - 536870913 ) , 0 ) ; final com . freedomotic . environment . GraphEdge other = new com . freedomotic . environment . GraphEdge ( 0 , ( - 536870913 ) , null ) ...
org . junit . Assert . assertEquals ( false , retval )
testMvelDiscriminatesTransitionsByConditionName ( ) { org . squirrelframework . foundation . issues . StateMachineBuilder < org . squirrelframework . foundation . issues . AuthFlowStateMachine , java . lang . String , java . lang . Object , org . squirrelframework . foundation . issues . Context > builder = org . squir...
org . junit . Assert . assertEquals ( "second" , stateMachine . getCurrentState ( ) )
testScalarEncoding ( ) { lombok . val scalar = org . nd4j . linalg . factory . Nd4j . trueScalar ( 2.0F ) ; com . google . flatbuffers . FlatBufferBuilder bufferBuilder = new com . google . flatbuffers . FlatBufferBuilder ( 0 ) ; lombok . val fb = scalar . toFlatArray ( bufferBuilder ) ; bufferBuilder . finish ( fb ) ;...
org . junit . Assert . assertEquals ( scalar , restored )
shouldNotFilterAnyArchetypeReferencesNoStartDate ( ) { org . joda . time . DateTime startDateTime = null ; org . joda . time . DateTime endDateTime = new org . joda . time . DateTime ( "2013-07-01" ) ; java . util . Collection < se . cambio . cds . model . instance . ArchetypeReference > ehrData = generateContactArchet...
org . junit . Assert . assertEquals ( 2 , filteredEhrARs . size ( ) )
setValue ( ) { java . util . Date date = new java . util . Date ( ) ; com . xpn . xwiki . objects . DateProperty property = new com . xpn . xwiki . objects . DateProperty ( ) ; property . setValue ( date ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return this . suggestion . getAttribute ( "data-value" ) ; }
org . junit . Assert . assertSame ( date , property . getValue ( ) )
testGetRepostByMePagination ( ) { mockServer . expect ( requestTo ( "https://api.weibo.com/2/statuses/repost_by_me.json?since_id=0&max_id=0&count=10&page=5" ) ) . andExpect ( method ( org . springframework . social . weibo . api . impl . GET ) ) . andExpect ( header ( "Authorization" , "OAuth2<sp>accessToken" ) ) . and...
org . junit . Assert . assertEquals ( "" , firstStatus . getText ( ) )
testPluginsSortedByTitle ( ) { final java . util . List < java . lang . String > expectedTitles = java . util . Arrays . asList ( "Plugin<sp>A" , "Plugin<sp>B" , "Plugin<sp>C" ) ; final java . util . List < java . lang . String > actualTitles = mapTitles ( page . sortByTitle ( new java . util . ArrayList < org . drools...
org . junit . Assert . assertEquals ( expectedTitles , actualTitles )
testgetLongKO ( ) { "<AssertPlaceHolder>" ; ff4jConf . getLong ( "propString" ) ; } containsKey ( java . lang . Object ) { return value ( ) . containsKey ( key ) ; }
org . junit . Assert . assertTrue ( ff4jConf . containsKey ( "propString" ) )
testCreatePullConsumer ( ) { org . omg . CORBA . IntHolder id = new org . omg . CORBA . IntHolder ( ) ; org . omg . CosTypedNotifyChannelAdmin . TypedProxyPullConsumer consumer = supplierAdmin_ . obtain_typed_notification_pull_consumer ( org . jacorb . test . notification . typed . PullCoffeeHelper . id ( ) , id ) ; "<...
org . junit . Assert . assertEquals ( consumer , supplierAdmin_ . get_proxy_consumer ( id . value ) )
testSystemStateSetFileName ( ) { java . lang . String fileSeparator = java . lang . System . getProperty ( "file.separator" ) ; java . lang . String testFileName = ( ( ( ( fileSeparator + "folder1" ) + fileSeparator ) + "folder2" ) + fileSeparator ) + "fileName.nc" ; systemState . setFileName ( testFileName ) ; "<Asser...
org . junit . Assert . assertEquals ( "fileName.nc" , systemState . getFileName ( ) )
testXMLEnum ( ) { "<AssertPlaceHolder>" ; } fromValue ( java . lang . String ) { for ( ru . gkn . DInhabitedLocalities c : ru . gkn . DInhabitedLocalities . values ( ) ) { if ( c . value . equals ( v ) ) { return c ; } } throw new java . lang . IllegalArgumentException ( v ) ; }
org . junit . Assert . assertNotNull ( ru . gkn . DInhabitedLocalities . fromValue ( "" ) )
test_Equality_Ignoring_Issuer ( ) { com . ripple . core . coretypes . Amount a = com . ripple . core . AmountTest . amt ( "0/USD/rNDKeo9RrCiRdfsMG8AdoZvNZxHASGzbZL" ) ; com . ripple . core . coretypes . Amount b = com . ripple . core . AmountTest . amt ( "0/USD/rH5aWQJ4R7v4Mpyf4kDBUvDFT5cbpFq3XP" ) ; "<AssertPlaceHolde...
org . junit . Assert . assertTrue ( a . equalsExceptIssuer ( b ) )
testGetPrimeAt_int ( ) { "<AssertPlaceHolder>" ; try { org . openscience . cdk . math . Primes . getPrimeAt ( 2229 ) ; org . junit . Assert . fail ( "Should<sp>fail<sp>her,<sp>because<sp>it<sp>contains<sp>only<sp>X<sp>primes." ) ; } catch ( java . lang . ArrayIndexOutOfBoundsException exception ) { } } getPrimeAt ( int...
org . junit . Assert . assertEquals ( 2 , org . openscience . cdk . math . Primes . getPrimeAt ( 0 ) )
testVervallenEnActieGeldigWelAapassingGeldigheidActieInhoudGeldigMaterieel ( ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonUitgeslotenActiesPredikaat persoonViewOpActiesPredikaat = new nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonUitgeslotenActiesPredikaat ( ) ; final ...
org . junit . Assert . assertFalse ( persoonViewOpActiesPredikaat . evaluate ( materieelVerantwoordbaar ) )
shouldReportAvailableExtensions ( ) { java . util . Collection < org . kaazing . gateway . transport . ws . extension . WebSocketExtensionFactorySpi > available = wsExtFactory . availableExtensions ( ) ; "<AssertPlaceHolder>" ; } size ( ) { int size ; do { final long currentHead = head ; final long currentTail = tail ;...
org . junit . Assert . assertEquals ( 5 , available . size ( ) )
tomorrow ( ) { long tolerance = 500 ; java . util . Calendar cal = java . util . Calendar . getInstance ( ) ; cal . add ( Calendar . DAY_OF_MONTH , 1 ) ; long expected = cal . getTimeInMillis ( ) ; long actual = org . candlepin . util . Util . yesterday ( ) . getTime ( ) ; "<AssertPlaceHolder>" ; } yesterday ( ) { long...
org . junit . Assert . assertTrue ( ( ( actual - expected ) <= tolerance ) )
getDrawerFor_04 ( ) { org . arakhne . afc . nodefx . Drawer d1 = org . arakhne . afc . nodefx . Drawers . getDrawerFor ( org . arakhne . afc . nodefx . Number . class ) ; "<AssertPlaceHolder>" ; } getDrawerFor ( java . lang . Class ) { assert type != null : org . arakhne . afc . vmutil . asserts . AssertMessages . notN...
org . junit . Assert . assertNull ( d1 )
widthCanBeSet ( ) { final com . sothawo . mapjfx . CoordinateLine coordinateLine = new com . sothawo . mapjfx . CoordinateLine ( ) ; coordinateLine . setWidth ( 5 ) ; "<AssertPlaceHolder>" ; } getWidth ( ) { return width ; }
org . junit . Assert . assertEquals ( 5 , coordinateLine . getWidth ( ) )
shouldReturnEmptyPropertyInfosWhenSuppliedValidUrlAndAllPropertiesWithRepositoryInJndi ( ) { validUrl = ( LocalJcrDriver . JNDI_URL_PREFIX ) + ( jndiNameForRepository ) ; validProperties . put ( LocalJcrDriver . WORKSPACE_PROPERTY_NAME , "MyWorkspace" ) ; validProperties . put ( LocalJcrDriver . USERNAME_PROPERTY_NAME ...
org . junit . Assert . assertThat ( infos . length , org . hamcrest . core . Is . is ( 0 ) )
testAWS_InstanceID ( ) { propertyHandler = new org . oscm . app . aws . controller . PropertyHandler ( settings ) ; propertyHandler . setAWSInstanceId ( "test1" ) ; "<AssertPlaceHolder>" ; } getAWSInstanceId ( ) { return getValue ( org . oscm . app . aws . controller . PropertyHandler . AWS_INSTANCE_ID , settings . get...
org . junit . Assert . assertEquals ( "test1" , propertyHandler . getAWSInstanceId ( ) )
parseAndRender ( ) { org . xwiki . rendering . parser . Parser parser = this . mocker . registerMockComponent ( org . xwiki . rendering . parser . Parser . class , "plain/1.0" ) ; when ( parser . parse ( argThat ( new org . xwiki . test . mockito . StringReaderMatcher ( "some<sp>[[TODO]]<sp>stuff" ) ) ) ) . thenReturn ...
org . junit . Assert . assertEquals ( "some<sp>~[~[TODO]]<sp>stuff" , this . mocker . getComponentUnderTest ( ) . render ( xdom , "xwiki/2.0" ) )
testConvertRawValueInvalidType ( ) { java . lang . Object expectedValue = java . lang . Double . valueOf ( "1000e05" ) ; java . lang . Object rawValue = java . lang . Double . valueOf ( "1000e05" ) ; com . thinkbiganalytics . policy . standardization . StripNonNumeric stripNonNumeric = com . thinkbiganalytics . policy ...
org . junit . Assert . assertEquals ( expectedValue , stripNonNumeric . convertRawValue ( rawValue ) )
testBrpVerbintenisInhoud ( ) { nl . moderniseringgba . migratie . testutils . EqualsAndHashcodeTester . testEqualsHashcodeAndToString ( new nl . moderniseringgba . migratie . conversie . proces . brpnaarlo3 . groep . BrpVerbintenisInhoud ( nl . moderniseringgba . migratie . conversie . model . brp . attribuut . BrpSoor...
org . junit . Assert . assertFalse ( new nl . moderniseringgba . migratie . conversie . proces . brpnaarlo3 . groep . BrpVerbintenisInhoud ( null ) . isLeeg ( ) )
testIsotopeHandler_IChemObjectBuilder ( ) { org . openscience . cdk . config . isotopes . IsotopeHandler handler = new org . openscience . cdk . config . isotopes . IsotopeHandler ( new org . openscience . cdk . ChemObject ( ) . getBuilder ( ) ) ; "<AssertPlaceHolder>" ; } getBuilder ( ) { return null ; }
org . junit . Assert . assertNotNull ( handler )
getRedirectMpUrlHttp_OK ( ) { java . lang . String value = "http://thisisaurl/?mId=aaa" ; when ( confSvcMock . getVOConfigurationSetting ( eq ( ConfigurationKey . MP_ERROR_REDIRECT_HTTP ) , anyString ( ) ) ) . thenReturn ( org . oscm . ui . filter . MarketplaceContextFilterTest . createSetting ( ConfigurationKey . MP_E...
org . junit . Assert . assertEquals ( value , result )
isSetEmptyString ( ) { java . lang . String string = "" ; boolean result = com . archimatetool . editor . utils . StringUtils . isSet ( string ) ; "<AssertPlaceHolder>" ; } isSet ( java . lang . String ) { return ( input != null ) && ( ! ( com . archimatetool . editor . utils . StringUtils . ZERO_LENGTH_STRING . equals...
org . junit . Assert . assertFalse ( result )
testAllWithNewAxisInMiddle ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 24 , 24 ) . reshape ( 4 , 2 , 3 ) ; org . nd4j . linalg . api . ndarray . INDArray assertion2 = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] [ ] { new double [ ] ...
org . junit . Assert . assertEquals ( assertion2 , get2 )
testFindFlowMessageText ( ) { java . lang . Long id = flowManager . beginFlow ( message , org . openehealth . ipf . commons . flow . FlowManagerImplTest . APPLICATION ) ; testTransactionManager . commitTransaction ( ) ; testTransactionManager . beginTransaction ( ) ; java . lang . String text = flowManager . findFlowMe...
org . junit . Assert . assertEquals ( message . render ( ) , text )
testAssetListCopiedWhenLocalStagingActivated ( ) { com . liferay . asset . list . model . AssetListEntry liveAssetListEntry = com . liferay . asset . list . util . AssetListTestUtil . addAssetListEntry ( _liveGroup . getGroupId ( ) ) ; _stagingGroup = com . liferay . asset . list . util . AssetListStagingTestUtil . ena...
org . junit . Assert . assertNotNull ( stagingAssetListEntry )