input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testTimestamp ( ) { ch . yax . hive . udf . number . Timestamp timestamp = new ch . yax . hive . udf . number . Timestamp ( ) ; "<AssertPlaceHolder>" ; } evaluate ( ) { ( count ) ++ ; return count ; }
org . junit . Assert . assertNotNull ( timestamp . evaluate ( ) )
test ( ) { java . io . File subFolder = folder . newFolder ( ) ; java . util . Set < java . nio . file . attribute . PosixFilePermission > permissions = new java . util . HashSet ( ) ; permissions . add ( PosixFilePermission . OWNER_READ ) ; permissions . add ( PosixFilePermission . OWNER_WRITE ) ; permissions . add ( ...
org . junit . Assert . assertTrue ( s . isSelected ( null , null , subFolder ) )
testSetRow ( ) { org . apache . commons . math4 . linear . RealMatrix m = new org . apache . commons . math4 . linear . BlockRealMatrix ( subTestData ) ; "<AssertPlaceHolder>" ; m . setRow ( 0 , subRow3 [ 0 ] ) ; checkArrays ( subRow3 [ 0 ] , m . getRow ( 0 ) ) ; try { m . setRow ( ( - 1 ) , subRow3 [ 0 ] ) ; org . jun...
org . junit . Assert . assertTrue ( ( ( subRow3 [ 0 ] [ 0 ] ) != ( m . getRow ( 0 ) [ 0 ] ) ) )
testSuitableIfCacheEntryIsHeuristicallyFreshEnough ( ) { final java . util . Date oneSecondAgo = new java . util . Date ( ( ( now . getTime ( ) ) - ( 1 * 1000L ) ) ) ; final java . util . Date twentyOneSecondsAgo = new java . util . Date ( ( ( now . getTime ( ) ) - ( 21 * 1000L ) ) ) ; final org . apache . hc . core5 ....
org . junit . Assert . assertTrue ( impl . canCachedResponseBeUsed ( host , request , entry , now ) )
cloneAsVersionTest ( ) { final org . opendaylight . controller . cluster . access . commands . TransactionCommitSuccess clone = org . opendaylight . controller . cluster . access . commands . TransactionCommitSuccessTest . OBJECT . cloneAsVersion ( ABIVersion . BORON ) ; "<AssertPlaceHolder>" ; } cloneAsVersion ( org ....
org . junit . Assert . assertEquals ( org . opendaylight . controller . cluster . access . commands . TransactionCommitSuccessTest . OBJECT , clone )
testCorrectHeaderParameter ( ) { com . ibm . ws . microprofile . openapi . impl . validation . ParameterValidator validator = com . ibm . ws . microprofile . openapi . impl . validation . ParameterValidator . getInstance ( ) ; com . ibm . ws . microprofile . openapi . test . utils . TestValidationHelper vh = new com . ...
org . junit . Assert . assertEquals ( 0 , vh . getEventsSize ( ) )
areControlActProcessFieldsNullWhenQueryByParameterNull ( ) { boolean result ; org . hl7 . v3 . PRPAIN201305UV02 oRequest = new org . hl7 . v3 . PRPAIN201305UV02 ( ) ; org . hl7 . v3 . PRPAIN201305UV02QUQIMT021001UV01ControlActProcess controlActProcess = new org . hl7 . v3 . PRPAIN201305UV02QUQIMT021001UV01ControlActPro...
org . junit . Assert . assertTrue ( result )
determinePriceModelType_Template ( ) { org . oscm . domobjects . PriceModel pm = givenPriceModel ( ServiceType . TEMPLATE ) ; org . oscm . serviceprovisioningservice . auditlog . PriceModelAuditLogOperation . PriceModelType type = logCollector . determinePriceModelType ( pm ) ; "<AssertPlaceHolder>" ; } determinePriceM...
org . junit . Assert . assertEquals ( PriceModelType . SERVICE , type )
s3ServerSideEncryption ( ) { com . hotels . bdp . circustrain . s3mapreducecp . S3MapReduceCpOptions options = new com . hotels . bdp . circustrain . s3mapreducecp . OptionsParser ( ) . parse ( "--src" , "hdfs://localhost:8020/source/first" , "--dest" , "hdfs://localhost:8020/target/" , "--credentialsProvider" , "jceks...
org . junit . Assert . assertThat ( options . isS3ServerSideEncryption ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testCompareVersionNewMajor ( ) { java . lang . String Version1 = "1.1.1" ; java . lang . String Version2 = "2.1.1" ; "<AssertPlaceHolder>" ; } compareVersions ( java . lang . String , java . lang . String ) { return de . jonato . jfxc . info . Version . compareVersions ( version1 , version2 , de . jonato . jfxc . info ...
org . junit . Assert . assertTrue ( ( ( de . jonato . jfxc . info . Version . compareVersions ( Version1 , Version2 ) ) < 0 ) )
testPrintWriter ( ) { java . lang . String file = "PrintWriter_file.tmp" ; java . lang . String expected = "testPrintWriter" ; org . evosuite . runtime . mock . java . io . MockPrintWriter out = new org . evosuite . runtime . mock . java . io . MockPrintWriter ( file ) ; out . println ( expected ) ; out . close ( ) ; j...
org . junit . Assert . assertEquals ( expected , result )
postOnlyWithModeratorOnlineModeratorIsOfflineShouldDeny ( ) { when ( request . getParameter ( "topic.forum.id" ) ) . thenReturn ( "1" ) ; when ( userSession . isLogged ( ) ) . thenReturn ( true ) ; when ( roleManager . isForumAllowed ( 1 ) ) . thenReturn ( true ) ; when ( roleManager . isForumReadOnly ( 1 ) ) . thenRet...
org . junit . Assert . assertFalse ( rule . shouldProceed ( userSession , request ) )
test_multipliedBy_BigDecimal_one ( ) { org . joda . money . BigMoney test = org . joda . money . TestBigMoney . GBP_2_34 . multipliedBy ( BigDecimal . ONE ) ; "<AssertPlaceHolder>" ; } multipliedBy ( long ) { return with ( money . multipliedBy ( valueToMultiplyBy ) ) ; }
org . junit . Assert . assertSame ( org . joda . money . TestBigMoney . GBP_2_34 , test )
fixedVariable ( ) { try ( org . apache . arrow . vector . IntVector col1 = new org . apache . arrow . vector . IntVector ( "col1" , allocator ) ; org . apache . arrow . vector . BigIntVector col2 = new org . apache . arrow . vector . BigIntVector ( "col2" , allocator ) ; org . apache . arrow . vector . VarCharVector co...
org . junit . Assert . assertEquals ( 20 , pivot . getBlockWidth ( ) )
shouldHaveStaticComponentId ( ) { java . lang . String componentId = this . h . getId ( ) ; this . h . setId ( "madeup" ) ; "<AssertPlaceHolder>" ; } getId ( ) { return org . springframework . springfaces . mvc . model . SpringFacesModelHolder . COMPONENT_ID ; }
org . junit . Assert . assertThat ( this . h . getId ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( componentId ) ) )
getColorThemeFromSkinFileWithOtherSkinAndException ( ) { java . lang . Exception exception = new org . xwiki . lesscss . compiler . LESSCompilerException ( "Exception<sp>with<sp>LESS" , null ) ; when ( lessColorThemeConverter . getColorThemeFromSkinFile ( "style.less" , "flamingo" , false ) ) . thenThrow ( exception ) ...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testGetString ( ) { java . sql . PreparedStatement preparedStatement = createMock ( java . sql . PreparedStatement . class ) ; java . sql . ResultSet resultSet = createMock ( java . sql . ResultSet . class ) ; int colN = 120 ; java . lang . String val = "zippy" ; expect ( resultSet . getMetaData ( ) ) . andReturn ( nul...
org . junit . Assert . assertEquals ( val , results . getString ( colN ) )
testLastWithoutList ( ) { final org . apache . calcite . linq4j . Enumerable < java . lang . String > enumerable = org . apache . calcite . linq4j . Linq4j . asEnumerable ( java . util . Collections . unmodifiableCollection ( java . util . Arrays . asList ( "jimi" , "noel" , "mitch" ) ) ) ; "<AssertPlaceHolder>" ; } la...
org . junit . Assert . assertEquals ( "mitch" , enumerable . last ( ) )
test_getParameterName ( ) { ch . puzzle . itc . mobiliar . business . deploy . entity . CustomFilter c = ch . puzzle . itc . mobiliar . business . deploy . entity . CustomFilter . builder ( specialFilterType ) . filterDisplayName ( "filterDisplayName" ) . deploymentTableColumnName ( "deploymentTableColumnName" ) . buil...
org . junit . Assert . assertEquals ( "filterDisplayName" , parameterName )
testStringListViaReflection ( ) { org . cache2k . configuration . CacheTypeCapture < java . util . List < java . lang . String > > vtt = new org . cache2k . configuration . CacheTypeCapture < java . util . List < java . lang . String > > ( ) { } ; java . lang . reflect . ParameterizedType pt = ( ( java . lang . reflect...
org . junit . Assert . assertEquals ( java . lang . String . class , t . getActualTypeArguments ( ) [ 0 ] )
testBadInstanciation ( ) { org . orbisgis . coremap . renderer . se . Style s = getStyle ( org . orbisgis . legend . thematic . categorize . AREA_RECODE ) ; org . orbisgis . coremap . renderer . se . AreaSymbolizer as = ( ( org . orbisgis . coremap . renderer . se . AreaSymbolizer ) ( s . getRules ( ) . get ( 0 ) . get...
org . junit . Assert . assertTrue ( true )
testGrandparentWithoutObjectTrueCondition ( ) { io . yawp . repository . models . parents . Parent parent = saveParent ( "parent" ) ; saveGrandchild ( "granchild" , saveChild ( "child" , parent ) ) ; io . yawp . repository . shields . RuleConditions conditions = new io . yawp . repository . shields . RuleConditions ( y...
org . junit . Assert . assertTrue ( conditions . evaluate ( ) )
testEncodeDecodeHeaders ( ) { java . util . Map < java . lang . String , java . lang . String > headers = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "foo" , "bar" ) ; } } ; io . netty . buffer . ByteBuf binaryHeaders = serializer . encodeHeaders ( headers ) ; java . util . M...
org . junit . Assert . assertEquals ( headers , decodedHeaders )
testGetValueReturnsTheValueAdded ( ) { final com . lmax . simpledsl . SimpleDslParam param = new com . lmax . simpledsl . SimpleDslParamTest . TestParam ( "foo" ) ; param . addValue ( "12" ) ; "<AssertPlaceHolder>" ; } getValue ( ) { if ( allowMultipleValues ) { throw new java . lang . IllegalArgumentException ( "getVa...
org . junit . Assert . assertEquals ( "12" , param . getValue ( ) )
phases ( ) { com . asakusafw . workflow . model . basic . BasicJobflowInfo jobflow = new com . asakusafw . workflow . model . basic . BasicJobflowInfo ( context . getFlowId ( ) ) ; jobflow . addTask ( TaskInfo . Phase . INITIALIZE , new com . asakusafw . workflow . executor . MockTaskInfo ( "A" ) ) ; jobflow . addTask ...
org . junit . Assert . assertThat ( e0 . getValues ( ) , contains ( "A" , "B" , "C" , "D" , "E" , "F" , "G" , "H" ) )
should_return_this ( ) { org . fest . assertions . api . CharacterAssert returned = assertions . isEqualTo ( actual ) ; "<AssertPlaceHolder>" ; } isEqualTo ( byte ) { bytes . assertEqualTo ( description , actual , expected ) ; return this ; }
org . junit . Assert . assertSame ( assertions , returned )
testAddPutsValue ( ) { com . eclipsesource . tabris . internal . ClientStoreImpl store = new com . eclipsesource . tabris . internal . ClientStoreImpl ( ) ; store . add ( "foo" , "bar" ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { whenNull ( shortcut ) . throwIllegalArgument ( "shortcut<sp>must<sp>not<sp...
org . junit . Assert . assertEquals ( "bar" , store . get ( "foo" ) )
testSerializationIsThreadSafe ( ) { scheduler = new org . eclipse . swt . widgets . TimerExecScheduler ( display ) ; java . lang . Runnable runnable = new java . lang . Runnable ( ) { public void run ( ) { try { scheduler . schedule ( 1 , new org . eclipse . rap . rwt . testfixture . internal . NoOpRunnable ( ) ) ; } c...
org . junit . Assert . assertEquals ( 0 , exceptions . size ( ) )
testGetStyleForMetacardBooleanAttribute ( ) { ddf . catalog . data . Metacard metacard = new org . codice . ddf . spatial . kml . transformer . MockMetacard ( AttributeFormat . BOOLEAN . toString ( ) , true ) ; org . codice . ddf . spatial . kml . transformer . KmlStyleMap mapper = new org . codice . ddf . spatial . km...
org . junit . Assert . assertThat ( mapper . getStyleForMetacard ( metacard ) , org . hamcrest . Matchers . is ( org . codice . ddf . spatial . kml . transformer . KmlStyleMapTest . DEFAULT_STYLE_URL ) )
testDismissCache_flipIntRange ( ) { org . roaringbitmap . FastRankRoaringBitmap fast = prepareFastWithComputedCache ( ) ; fast . flip ( 0L , 2 ) ; "<AssertPlaceHolder>" ; } isCacheDismissed ( ) { return ! ( cumulatedCardinalitiesCacheIsValid ) ; }
org . junit . Assert . assertTrue ( fast . isCacheDismissed ( ) )
testNullString ( ) { final java . sql . PreparedStatement ps = connection . prepareStatement ( "SELECT<sp>null<sp>as<sp>str" ) ; final java . sql . ResultSet rs = ps . executeQuery ( ) ; final com . typemapper . core . TypeMapper < ? > mapper = com . typemapper . core . TypeMapperFactory . createTypeMapper ( com . type...
org . junit . Assert . assertNull ( result . getStr ( ) )
test ( ) { org . openl . rules . context . IRulesRuntimeContext context = objectMapper . readValue ( json , org . openl . rules . context . IRulesRuntimeContext . class ) ; "<AssertPlaceHolder>" ; } getCurrentDate ( ) { return currentDate ; }
org . junit . Assert . assertEquals ( target , context . getCurrentDate ( ) )
should_get_property_value_defined_in_object_class ( ) { org . fest . reflect . core . Reflection_property_Test . Person person = new org . fest . reflect . core . Reflection_property_Test . Person ( ) ; java . lang . Class < ? > personClass = org . fest . reflect . core . Reflection . property ( "class" ) . ofType ( ja...
org . junit . Assert . assertEquals ( org . fest . reflect . core . Reflection_property_Test . Person . class , personClass )
testAuthorizeReturningFalse ( ) { edu . illinois . library . cantaloupe . resource . RequestContext context = new edu . illinois . library . cantaloupe . resource . RequestContext ( ) ; context . setIdentifier ( new edu . illinois . library . cantaloupe . image . Identifier ( "forbidden-boolean.jpg" ) ) ; instance . se...
org . junit . Assert . assertFalse ( ( ( boolean ) ( instance . authorize ( ) ) ) )
refreshExistingSessionShouldFetchUserAndRoleManager ( ) { net . jforum . entities . User user = new net . jforum . entities . User ( ) ; user . setId ( 1 ) ; net . jforum . entities . UserSession us = this . newUserSession ( "123" ) ; us . setRequest ( request ) ; us . setResponse ( response ) ; us . setUser ( user ) ;...
org . junit . Assert . assertNotNull ( us . getRoleManager ( ) )
testApplyScriptNoReturn ( ) { java . lang . String script = "init<sp>=<sp>function()<sp>{};" + "apply<sp>=<sp>function(priceTick)<sp>{};" ; com . onplan . adviser . predicate . AdviserPredicate adviserPredicate = createAdviserPredicate ( script ) ; adviserPredicate . init ( ) ; int trueCount = 0 ; for ( com . onplan . ...
org . junit . Assert . assertEquals ( 0 , trueCount )
testSlotFromSlotKey ( ) { int expectedSlot = 1 ; int slot = com . rackspacecloud . blueflood . io . serializers . metrics . SlotKeySerDes . slotFromSlotKey ( com . rackspacecloud . blueflood . rollup . SlotKey . of ( Granularity . MIN_5 , expectedSlot , 10 ) . toString ( ) ) ; "<AssertPlaceHolder>" ; } toString ( ) { r...
org . junit . Assert . assertEquals ( expectedSlot , slot )
testPRWithUpdateOnList ( ) { final java . lang . String str = ( ( ( ( ( ( ( ( ( ( ( "import<sp>" + ( java . util . List . class . getCanonicalName ( ) ) ) + "\n" ) + "rule<sp>R1<sp>when\n" ) + "<sp>$l<sp>:<sp>List(<sp>empty<sp>==<sp>true<sp>)\n" ) + "then\n" ) + "<sp>$l.add(\"test\"<sp>update($l);\n" 0 ) + "<sp>update(...
org . junit . Assert . assertEquals ( 1 , ksession . fireAllRules ( ) )
testNumElitesBadState ( ) { state . population = getTestPopulation ( ) ; final ec . multiobjective . nsga2 . NSGA2Breeder instance = new ec . multiobjective . nsga2 . NSGA2Breeder ( ) ; instance . setup ( state , ec . multiobjective . nsga2 . NSGA2BreederTest . BASE ) ; final int result = instance . numElites ( state ,...
org . junit . Assert . assertEquals ( 10 , result )
testDetermineOsFamilyForMac ( ) { final java . lang . String osName = "Mac<sp>OS<sp>X" ; "<AssertPlaceHolder>" ; } determineOsFamily ( java . lang . String ) { osName = ( osName == null ) ? "" : osName . toLowerCase ( Locale . ENGLISH ) ; if ( osName . contains ( "mac" ) ) { return com . vmware . xenon . common . Syste...
org . junit . Assert . assertEquals ( OsFamily . MACOS , com . vmware . xenon . common . SystemHostInfo . determineOsFamily ( osName ) )
testAIOOBEHeight ( ) { java . awt . image . BufferedImage myImage = new java . awt . image . BufferedImage ( 100 , 354 , java . awt . image . BufferedImage . TYPE_INT_ARGB ) ; for ( int i = 19 ; i > 0 ; i -- ) { com . twelvemonkeys . image . ResampleOp resampler = new com . twelvemonkeys . image . ResampleOp ( 100 , i ...
org . junit . Assert . assertNotNull ( resizedImage )
testInt ( ) { com . questdb . net . ha . protocol . commands . IntResponseProducer producer = new com . questdb . net . ha . protocol . commands . IntResponseProducer ( ) ; com . questdb . net . ha . protocol . commands . IntResponseConsumer consumer = new com . questdb . net . ha . protocol . commands . IntResponseCon...
org . junit . Assert . assertEquals ( 155 , consumer . getValue ( channel ) )
givenRegexWithoutCanonEq_whenMatchFailsOnEquivalentUnicode_thenCorrect ( ) { int matches = com . baeldung . java . regex . RegexUnitTest . runTest ( "é" , "é" ) ; "<AssertPlaceHolder>" ; } runTest ( java . lang . String , java . lang . String ) { com . baeldung . java . regex . RegexUnitTest . pattern = java . util . ...
org . junit . Assert . assertFalse ( ( matches > 0 ) )
skipWorksWithBufferRefills ( ) { final byte [ ] data = new byte [ ] { 1 , 2 , 3 , 4 } ; final java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( data ) ; final com . flagstone . transform . coder . LittleDecoder fixture = new com . flagstone . transform . coder . LittleDecoder ( stream , 2...
org . junit . Assert . assertEquals ( 4 , fixture . readByte ( ) )
shouldDeleteFoundFlowCookie ( ) { org . openkilda . model . FlowCookie cookie = org . openkilda . model . FlowCookie . builder ( ) . unmaskedCookie ( org . openkilda . persistence . repositories . impl . Neo4jFlowCookieRepositoryTest . TEST_COOKIE ) . flowId ( org . openkilda . persistence . repositories . impl . Neo4j...
org . junit . Assert . assertEquals ( 0 , org . openkilda . persistence . repositories . impl . Neo4jFlowCookieRepositoryTest . flowCookieRepository . findAll ( ) . size ( ) )
autorisatieOngeldigDienstbundelDatumEindeInVerleden ( ) { dienst . getDienstbundel ( ) . setDatumEinde ( nl . bzk . algemeenbrp . util . common . DatumUtil . gisteren ( ) ) ; final boolean isGeldig = service . isAutorisatieGeldig ( toegangLeveringsAutorisatie , dienst ) ; "<AssertPlaceHolder>" ; } isAutorisatieGeldig (...
org . junit . Assert . assertFalse ( isGeldig )
testLoginWithQuotes ( ) { org . talend . components . salesforce . SalesforceConnectionProperties props = setupProps ( null , org . talend . components . salesforce . integration . ADD_QUOTES ) ; org . talend . daikon . properties . presentation . Form f = props . getForm ( SalesforceConnectionProperties . FORM_WIZARD ...
org . junit . Assert . assertEquals ( ValidationResult . Result . OK , props . getValidationResult ( ) . getStatus ( ) )
testReadPosCurrentBlock ( ) { java . lang . String fname = filenameOption ; positionReadOption = true ; int wrChunkSize = ( ( int ) ( org . apache . hadoop . hdfs . TestWriteRead . blockSize ) ) + ( ( int ) ( ( org . apache . hadoop . hdfs . TestWriteRead . blockSize ) / 2 ) ) ; long rdBeginPos = ( org . apache . hadoo...
org . junit . Assert . assertEquals ( 0 , stat )
testArrayQueueReentrance ( ) { final java . util . List < java . lang . String > foo = new java . util . ArrayList ( ) ; for ( int i = randomIntBetween ( 2 , 1000 ) ; ( -- i ) > 0 ; ) { foo . add ( randomAsciiLettersOfLength ( 20 ) ) ; } final com . google . common . eventbus . EventBus aggregatedBus = new com . google...
org . junit . Assert . assertFalse ( hadErrors . get ( ) )
testDebugPrintNullKeyToMap2 ( ) { final java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; final java . io . PrintStream outPrint = new java . io . PrintStream ( out ) ; final java . lang . String INDENT = "<sp>" ; final java . util . Map < java . lang . Object , java . lang . Object > ...
org . junit . Assert . assertEquals ( EXPECTED_OUT , out . toString ( ) )
evaluate_returns_null_for_invalid_CEF_string ( ) { final java . util . Map < java . lang . String , org . graylog . plugins . pipelineprocessor . ast . expressions . Expression > arguments = com . google . common . collect . ImmutableMap . of ( CEFParserFunction . VALUE , new org . graylog . plugins . pipelineprocessor...
org . junit . Assert . assertNull ( result )
writeJSONIgnoresMissingData ( ) { org . json . JSONObject json = new org . json . JSONObject ( ) ; this . tested . writeJSON ( this . patient , json , null ) ; "<AssertPlaceHolder>" ; } writeJSON ( org . phenotips . data . Patient , org . json . JSONObject , java . util . Collection ) { if ( ( selectedFieldNames == nul...
org . junit . Assert . assertEquals ( 0 , json . length ( ) )
testGetTypedArrayType32BitValue_FromBackingStore ( ) { com . eclipsesource . v8 . V8ArrayBuffer buffer = new com . eclipsesource . v8 . V8ArrayBuffer ( v8 , 4 ) ; v8 . add ( "buf" , buffer ) ; v8 . executeVoidScript ( "var<sp>ints<sp>=<sp>new<sp>Int32Array(buf);<sp>ints[0]<sp>=<sp>255;" ) ; "<AssertPlaceHolder>" ; buff...
org . junit . Assert . assertEquals ( 255 , buffer . getInt ( 0 ) )
filterIsValidFieldFalse ( ) { org . spincast . core . request . Form form = getFormFactory ( ) . createForm ( "myFormName" , null ) ; org . spincast . core . json . JsonObject model = getJsonManager ( ) . create ( ) ; org . spincast . core . json . JsonObject validationElement = getJsonManager ( ) . create ( ) ; model ...
org . junit . Assert . assertEquals ( "" , html )
testForcedBrowserModeIsNullByDefault ( ) { "<AssertPlaceHolder>" ; } getForcedBrowserMode ( ) { return forcedBrowserMode ; }
org . junit . Assert . assertNull ( configuration . getForcedBrowserMode ( ) )
testSave ( ) { java . util . List < software . amazon . awssdk . services . dynamodb . mapper . NumberSetAttributeClass > objs = new java . util . ArrayList < software . amazon . awssdk . services . dynamodb . mapper . NumberSetAttributeClass > ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { software . amazon . awssdk . servi...
org . junit . Assert . assertEquals ( obj , loaded )
testGetUrlLauncherService ( ) { org . eclipse . rap . rwt . client . service . ClientService service = client . getService ( org . eclipse . rap . rwt . client . service . UrlLauncher . class ) ; "<AssertPlaceHolder>" ; } getService ( java . lang . Class ) { T result = null ; if ( type == ( org . eclipse . rap . rwt . ...
org . junit . Assert . assertTrue ( ( service instanceof org . eclipse . rap . rwt . internal . client . UrlLauncherImpl ) )
setComponentPropertyTest ( ) { java . io . File configFile = new java . io . File ( "src/test/edu/cmu/sphinx/util/props/test/ConfigurationManagerTest.testconfig.sxl" ) ; edu . cmu . sphinx . util . props . ConfigurationManager cm = new edu . cmu . sphinx . util . props . ConfigurationManager ( configFile . toURI ( ) . ...
org . junit . Assert . assertEquals ( newBeamWidth , dummyComp . getBeamWidth ( ) )
testMenuItemAbstain ( ) { permissionManager . setAuthorizationPolicy ( null ) ; boolean result = authorizationManager . authorize ( menuPerspective1 , user ) ; "<AssertPlaceHolder>" ; } authorize ( org . uberfire . security . authz . Permission , org . jboss . errai . security . shared . api . identity . User ) { retur...
org . junit . Assert . assertEquals ( result , true )
testGetAllEpisodes ( ) { com . omertron . thetvdbapi . LOG . info ( "testGetAllEpisodes" ) ; java . util . List < com . omertron . thetvdbapi . model . Episode > episodes = tvdb . getAllEpisodes ( com . omertron . thetvdbapi . TheTvDbApiTest . TVDBID , com . omertron . thetvdbapi . TheTvDbApiTest . LANGUAGE_ENGLISH ) ;...
org . junit . Assert . assertFalse ( episodes . isEmpty ( ) )
buildScoreDirector ( ) { org . optaplanner . core . impl . domain . solution . descriptor . SolutionDescriptor < org . optaplanner . core . impl . testdata . domain . TestdataSolution > solutionDescriptor = org . optaplanner . core . impl . testdata . domain . TestdataSolution . buildSolutionDescriptor ( ) ; org . opta...
org . junit . Assert . assertEquals ( org . optaplanner . core . api . score . buildin . simple . SimpleScore . ofUninitialized ( 0 , ( - 10 ) ) , director . calculateScore ( ) )
testMatches_false ( ) { com . fasterxml . jackson . databind . node . ValueNode valueNode = jsonNodeFactory . numberNode ( java . lang . Integer . valueOf ( 20 ) ) ; nl . fd . hamcrest . jackson . IsJsonInt matcher = new nl . fd . hamcrest . jackson . IsJsonInt ( 10 ) ; boolean matches = matcher . matches ( valueNode )...
org . junit . Assert . assertFalse ( matches )
testAdvanceAssignmentTest ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
getDrugByUuid_shouldFindObjectGivenValidUuid ( ) { java . lang . String uuid = "3cfcf118-931c-46f7-8ff6-7b876f0d4202" ; org . openmrs . Drug drug = org . openmrs . api . context . Context . getConceptService ( ) . getDrugByUuid ( uuid ) ; "<AssertPlaceHolder>" ; } getDrugId ( ) { return this . drugId ; }
org . junit . Assert . assertEquals ( 2 , ( ( int ) ( drug . getDrugId ( ) ) ) )
testInitOutBufferIgnoreHashcode ( ) { org . hawkular . apm . client . collector . internal . FragmentBuilder builder = new org . hawkular . apm . client . collector . internal . FragmentBuilder ( ) ; builder . initOutBuffer ( 1 ) ; "<AssertPlaceHolder>" ; } isOutBufferActive ( java . lang . Object ) { return collector ...
org . junit . Assert . assertTrue ( builder . isOutBufferActive ( ( - 1 ) ) )
serialization ( ) { net . sf . hajdbc . state . DatabaseEvent event1 = new net . sf . hajdbc . state . DatabaseEvent ( new net . sf . hajdbc . MockDatabase ( "1" ) ) ; net . sf . hajdbc . state . DatabaseEvent event2 = net . sf . hajdbc . util . Objects . deserialize ( net . sf . hajdbc . util . Objects . serialize ( e...
org . junit . Assert . assertEquals ( event1 , event2 )
testCompareTo ( ) { java . util . List < io . scigraph . annotation . EntityAnnotation > list = com . google . common . collect . Lists . newArrayList ( annot1 , annot2 , annot3 , annot4 , annot5 ) ; java . util . Collections . sort ( list ) ; java . util . List < io . scigraph . annotation . EntityAnnotation > expecte...
org . junit . Assert . assertThat ( list , org . hamcrest . CoreMatchers . is ( expected ) )
equalsEquivelentTest ( ) { java . lang . StackTraceElement [ ] stack = java . lang . Thread . currentThread ( ) . getStackTrace ( ) ; org . threadly . util . debug . Profiler . Trace t1 = new org . threadly . util . debug . Profiler . Trace ( stack ) ; org . threadly . util . debug . Profiler . Trace t2 = new org . thr...
org . junit . Assert . assertTrue ( t1 . equals ( t2 ) )
testDatabaseTypeListener ( ) { org . pentaho . ui . database . event . DataHandler . DatabaseTypeListener listener = spy ( new org . pentaho . ui . database . event . DataHandler . DatabaseTypeListener ( org . pentaho . di . core . plugins . PluginRegistry . getInstance ( ) ) { @ org . pentaho . ui . database . event ....
org . junit . Assert . assertNotNull ( listener )
testCacheRemove ( ) { T cache = getCache ( ) ; java . lang . String key = org . cache2k . extra . spring . AbstractCacheTests . createRandomKey ( ) ; java . lang . Object value = "george" ; "<AssertPlaceHolder>" ; cache . put ( key , value ) ; } get ( K ) { return super . get ( key ) ; }
org . junit . Assert . assertNull ( cache . get ( key ) )
testSecureSource ( ) { final java . net . InetSocketAddress remoteAddress = new java . net . InetSocketAddress ( "192.168.1.22" , 2727 ) ; final io . netty . channel . Channel channel = org . mockito . Mockito . mock ( io . netty . channel . Channel . class ) ; final org . restcomm . media . core . network . netty . fi...
org . junit . Assert . assertTrue ( secure )
canProcessStreamMultipleTimes ( ) { java . math . BigDecimal bd = new java . math . BigDecimal ( "01234567890123456789012345678901234567890123456789012345678901234567890" ) ; java . lang . String largeString = ( "\"" + bd ) + "\"" ; byte [ ] bytes = largeString . getBytes ( ) ; java . io . ByteArrayInputStream is = new...
org . junit . Assert . assertEquals ( bd , value )
testComplexUnionSchema ( ) { org . apache . avro . Schema avroSchema = new org . apache . avro . Schema . Parser ( ) . parse ( new java . io . File ( "src/test/avro/AvroMessage.avsc" ) ) ; org . apache . kafka . connect . data . Schema connectSchema = avroData . toConnectSchema ( avroSchema ) ; org . apache . avro . Sc...
org . junit . Assert . assertEquals ( avroSchema , outputAvroSchema )
testBanServiceOnFacility ( ) { System . out . println ( "ServiceDenialDaoTest.blockServiceOnFacility" ) ; serviceDenialDao . blockServiceOnFacility ( testService1 . getId ( ) , testFacilityId1 ) ; "<AssertPlaceHolder>" ; } isServiceBlockedOnFacility ( int , int ) { int denials = this . queryForInt ( "select<sp>count(*)...
org . junit . Assert . assertTrue ( serviceDenialDao . isServiceBlockedOnFacility ( testService1 . getId ( ) , testFacilityId1 ) )
itShouldGiveSubgroupName ( ) { java . lang . String expectedSubgroupName = "TestSubGroup" ; hydrograph . ui . propertywindow . property . Property property = new hydrograph . ui . propertywindow . property . Property . Builder ( "String" , "delimiter" , "TEXT" ) . group ( "TextProperties" ) . subGroup ( "TestSubGroup" ...
org . junit . Assert . assertEquals ( expectedSubgroupName , property . getPropertySubGroup ( ) )
testInvalidParse ( ) { final java . lang . String urn = "urn:ogcx:def:CRS:EPSG:6.8:4326" ; try { new org . geotools . referencing . factory . URN_Parser ( urn ) ; org . junit . Assert . fail ( ) ; } catch ( org . opengis . referencing . NoSuchAuthorityCodeException e ) { "<AssertPlaceHolder>" ; } } getAuthorityCode ( )...
org . junit . Assert . assertEquals ( urn , e . getAuthorityCode ( ) )
xmlWithNoAddJUnitPublisherIsLoadedCorrectly ( ) { hudson . model . FreeStyleProject p = ( ( hudson . model . FreeStyleProject ) ( jenkinsRule . jenkins . getItem ( "old" ) ) ) ; org . jenkinsci . plugins . parallel_test_executor . ParallelTestExecutor trigger = ( ( org . jenkinsci . plugins . parallel_test_executor . P...
org . junit . Assert . assertTrue ( trigger . isArchiveTestResults ( ) )
testNullToEmptyDoubleObject ( ) { final java . lang . Double [ ] original = new java . lang . Double [ ] { 1.0 , 2.0 } ; "<AssertPlaceHolder>" ; } nullToEmpty ( java . lang . Object [ ] ) { if ( org . apache . commons . lang3 . ArrayUtils . isEmpty ( array ) ) { return org . apache . commons . lang3 . ArrayUtils . EMPT...
org . junit . Assert . assertArrayEquals ( original , org . apache . commons . lang3 . ArrayUtils . nullToEmpty ( original ) )
testCustomRangeHasFrequency ( ) { java . lang . String from = "2018-01-01" ; java . lang . String to = "2018-01-31" ; com . liferay . portal . kernel . search . facet . collector . TermCollector termCollector = mockTermCollector ( _dateRangeFactory . getRangeString ( from , to ) ) ; int frequency = com . liferay . port...
org . junit . Assert . assertEquals ( frequency , modifiedFacetTermDisplayContext . getFrequency ( ) )
testBuscaFuncionarioNaoExiste ( ) { br . com . senacrs . alp . aulas . trabalho8 . Funcionario busca = null ; busca = this . empresa . buscaFuncionario ( "nome" ) ; "<AssertPlaceHolder>" ; } buscaFuncionario ( java . lang . String ) { return null ; }
org . junit . Assert . assertNull ( busca )
testSerialization ( ) { com . openshift . android . model . UserResource user = new com . openshift . android . model . UserResource ( ) ; user . setLogin ( "openshiftandroid@gmail.com" ) ; java . lang . String json = gson . toJson ( user ) ; "<AssertPlaceHolder>" ; System . out . println ( json ) ; } setLogin ( java ....
org . junit . Assert . assertNotNull ( json )
testRepeatedAdds ( ) { System . out . println ( "testRepeatedAdds" ) ; uk . ac . susx . mlcl . lib . Calendar cal = uk . ac . susx . mlcl . lib . Calendar . getInstance ( ) ; uk . ac . susx . mlcl . lib . MemoryUsage mp = new uk . ac . susx . mlcl . lib . MemoryUsage ( ) ; mp . add ( cal ) ; System . out . println ( "\...
org . junit . Assert . assertEquals ( expectedSize , mp . getSizeBits ( ) )
playAround ( ) { java . lang . String url = "http://localhost:8080/oscar_alberta/lab/newLabUpload.do" ; java . lang . String publicOscarKeyString = org . oscarehr . labs . alberta . CLSHandlerIntegrationTest . OSCAR_KEY ; java . lang . String publicServiceKeyString = org . oscarehr . labs . alberta . CLSHandlerIntegrat...
org . junit . Assert . assertEquals ( 200 , statusCode )
testConvertDateToString_DateTime_String ( ) { com . moviejukebox . tools . DateTimeToolsTest . LOG . info ( "convertDateToString" ) ; org . pojava . datetime . DateTime convertDate = new org . pojava . datetime . DateTime ( 0 ) ; java . lang . String dateFormat = "dd/MM/yyyy" ; java . lang . String expResult = "01/01/1...
org . junit . Assert . assertEquals ( expResult , result )
testLongReasonForConfigChangeType ( ) { long ctime = java . lang . System . currentTimeMillis ( ) ; org . hyperic . hq . events . server . session . Alert testPlatformAlert = alertManager . createAlert ( this . testPlatformAlertDef , ctime ) ; org . hyperic . hq . events . server . session . AlertCondition cond = new o...
org . junit . Assert . assertEquals ( "Incorrect<sp>Long<sp>Reason" , "Incorrect<sp>Long<sp>Reason" 1 , longReason )
manyOpenTransactions ( ) { org . cojen . tupl . Index ix = mDb . openIndex ( "test" ) ; org . cojen . tupl . Transaction [ ] txns = new org . cojen . tupl . Transaction [ 1000 ] ; for ( int i = 0 ; i < ( txns . length ) ; i ++ ) { txns [ i ] = mDb . newTransaction ( ) ; ix . store ( txns [ i ] , ( "key-" + i ) . getByt...
org . junit . Assert . assertEquals ( 0 , ix . count ( null , null ) )
testShouldFindElementsByXPath ( ) { java . util . List < org . openqa . selenium . WebElement > listElem = driver . findElements ( org . openqa . selenium . By . xpath ( "//QLineEdit" ) ) ; "<AssertPlaceHolder>" ; } size ( ) { java . lang . Object response = executeMethod . execute ( DriverCommand . GET_LOCAL_STORAGE_S...
org . junit . Assert . assertThat ( listElem . size ( ) , equalTo ( 3 ) )
testKvTags ( ) { se . svt . helios . serviceregistration . consul . List < java . lang . String > tags = se . svt . helios . serviceregistration . consul . Arrays . asList ( "tag1" , "key::value" , "tag2" , "key2::value2::2" ) ; se . svt . helios . serviceregistration . consul . Map < java . lang . String , java . lang...
org . junit . Assert . assertThat ( actual , org . hamcrest . core . Is . is ( expected ) )
taskNotFound ( ) { com . fizzed . blaze . core . Blaze blaze = new com . fizzed . blaze . core . Blaze . Builder ( ) . dependencyResolver ( new com . fizzed . blaze . internal . NoopDependencyResolver ( ) ) . file ( resourceAsFile ( "/groovy/hello.groovy" ) ) . build ( ) ; try { blaze . execute ( "doesnotexist" ) ; org...
org . junit . Assert . assertThat ( e . getTask ( ) , org . hamcrest . CoreMatchers . is ( "doesnotexist" ) )
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 . Organization > organizations = _persistence . fetchByPrimaryKey...
org . junit . Assert . assertTrue ( organizations . isEmpty ( ) )
testGetObjectIdTwoObjects ( ) { com . sun . sgs . test . impl . service . data . TestDataServiceImpl . txnScheduler . runTask ( new com . sun . sgs . test . util . TestAbstractKernelRunnable ( ) { public void run ( ) { com . sun . sgs . test . util . DummyManagedObject x = new com . sun . sgs . test . util . DummyManag...
org . junit . Assert . assertFalse ( com . sun . sgs . test . impl . service . data . TestDataServiceImpl . service . getObjectId ( x ) . equals ( com . sun . sgs . test . impl . service . data . TestDataServiceImpl . service . getObjectId ( y ) ) )
getPositionsByIdShouldReturnEmptyListWhenNoPositionsFoundWithTheGivenIds ( ) { java . util . List < java . lang . Long > ids = java . util . Arrays . asList ( com . epam . rft . atsy . service . impl . PositionServiceImplTest . NON_EXISTENT_ID ) ; given ( positionRepository . findAll ( ids ) ) . willReturn ( com . epam...
org . junit . Assert . assertTrue ( positionDTOs . isEmpty ( ) )
testAssumeTypeBasedOnWhatIsIntheYamlWithSpace2 ( ) { net . openhft . chronicle . wire . InvalidYamWithCommonMistakesTest . DtoB expected = new net . openhft . chronicle . wire . InvalidYamWithCommonMistakesTest . DtoB ( "hello8" ) ; java . lang . Object actual = net . openhft . chronicle . wire . Marshallable . < net ....
org . junit . Assert . assertEquals ( expected , actual )
testCreateSettingsPanel ( ) { System . out . println ( "createSettingsPanel" ) ; kg . apc . jmeter . vizualizers . ResponseTimesDistributionGui instance = new kg . apc . jmeter . vizualizers . ResponseTimesDistributionGui ( ) ; kg . apc . jmeter . vizualizers . JSettingsPanel result = instance . createSettingsPanel ( )...
org . junit . Assert . assertNotNull ( result )
checkCopy ( ) { fixture = new com . flagstone . transform . action . SetTarget ( com . flagstone . transform . action . SetTargetTest . TARGET ) ; final com . flagstone . transform . action . SetTarget copy = fixture . copy ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return java . lang . String . format ( com . flag...
org . junit . Assert . assertEquals ( fixture . toString ( ) , copy . toString ( ) )
testAllPoolsOfflineIPv6 ( ) { _ci . command ( "psu<sp>set<sp>allpoolsactive<sp>off" ) ; org . dcache . vehicles . FileAttributes fileAttributes = new org . dcache . vehicles . FileAttributes ( ) ; diskCacheV111 . vehicles . StorageInfos . injectInto ( diskCacheV111 . vehicles . GenericStorageInfo . valueOf ( "*" , "*" ...
org . junit . Assert . assertEquals ( 0 , found )
testGetExpectedVersion ( ) { "<AssertPlaceHolder>" ; } getExpectedVersion ( ) { return ExecutionDataWriter . FORMAT_VERSION ; }
org . junit . Assert . assertEquals ( ExecutionDataWriter . FORMAT_VERSION , exception . getExpectedVersion ( ) )
one_$parent_array_range_projection_with_no_match_returns_empty_node_projection ( ) { com . redhat . lightblue . query . Projection p = com . redhat . lightblue . eval . EvalTestContext . projectionFromJson ( "{'field':'field6.$parent.field7','range':[5,6],'projection':{'field':'elemf3'}}" ) ; com . redhat . lightblue ....
org . junit . Assert . assertEquals ( expectedNode . toString ( ) , pdoc . toString ( ) )
testSerialization ( ) { org . jfree . chart . axis . CategoryTick t1 = new org . jfree . chart . axis . CategoryTick ( "C1" , new org . jfree . text . TextBlock ( ) , org . jfree . text . TextBlockAnchor . CENTER , org . jfree . ui . TextAnchor . CENTER , 1.5F ) ; org . jfree . chart . axis . CategoryTick t2 = ( ( org ...
org . junit . Assert . assertEquals ( t1 , t2 )
deveObterIcmsSN500ComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS icms = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMS ( ) ; final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpo...
org . junit . Assert . assertEquals ( icmsSetado , icms . getIcmssn500 ( ) )